@periskope/types 0.6.109 → 0.6.110
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 +260 -250
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
- package/supabase.types.ts +1835 -1827
- 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,9 @@ 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
|
-
ticket_metadata: Json | null;
|
|
705
708
|
};
|
|
706
709
|
Insert: {
|
|
707
710
|
assigned_by?: string | null;
|
|
@@ -711,6 +714,7 @@ export type Database = {
|
|
|
711
714
|
closed_at?: string | null;
|
|
712
715
|
created_at?: string;
|
|
713
716
|
due_date?: string | null;
|
|
717
|
+
freshdesk_metadata?: Json | null;
|
|
714
718
|
hubspot_metadata?: Json | null;
|
|
715
719
|
is_deleted?: boolean;
|
|
716
720
|
label_ids?: Json | null;
|
|
@@ -720,10 +724,9 @@ export type Database = {
|
|
|
720
724
|
quoted_message_id?: string | null;
|
|
721
725
|
raised_by?: string | null;
|
|
722
726
|
response_time?: number | null;
|
|
723
|
-
status?: Database[
|
|
727
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
724
728
|
subject: string;
|
|
725
729
|
ticket_id?: string;
|
|
726
|
-
ticket_metadata?: Json | null;
|
|
727
730
|
};
|
|
728
731
|
Update: {
|
|
729
732
|
assigned_by?: string | null;
|
|
@@ -733,6 +736,7 @@ export type Database = {
|
|
|
733
736
|
closed_at?: string | null;
|
|
734
737
|
created_at?: string;
|
|
735
738
|
due_date?: string | null;
|
|
739
|
+
freshdesk_metadata?: Json | null;
|
|
736
740
|
hubspot_metadata?: Json | null;
|
|
737
741
|
is_deleted?: boolean;
|
|
738
742
|
label_ids?: Json | null;
|
|
@@ -742,25 +746,24 @@ export type Database = {
|
|
|
742
746
|
quoted_message_id?: string | null;
|
|
743
747
|
raised_by?: string | null;
|
|
744
748
|
response_time?: number | null;
|
|
745
|
-
status?: Database[
|
|
749
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
746
750
|
subject?: string;
|
|
747
751
|
ticket_id?: string;
|
|
748
|
-
ticket_metadata?: Json | null;
|
|
749
752
|
};
|
|
750
753
|
Relationships: [
|
|
751
754
|
{
|
|
752
|
-
foreignKeyName:
|
|
753
|
-
columns: [
|
|
755
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
756
|
+
columns: ["org_id"];
|
|
754
757
|
isOneToOne: false;
|
|
755
|
-
referencedRelation:
|
|
756
|
-
referencedColumns: [
|
|
758
|
+
referencedRelation: "tbl_org";
|
|
759
|
+
referencedColumns: ["org_id"];
|
|
757
760
|
},
|
|
758
761
|
{
|
|
759
|
-
foreignKeyName:
|
|
760
|
-
columns: [
|
|
762
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
763
|
+
columns: ["org_id"];
|
|
761
764
|
isOneToOne: false;
|
|
762
|
-
referencedRelation:
|
|
763
|
-
referencedColumns: [
|
|
765
|
+
referencedRelation: "view_org";
|
|
766
|
+
referencedColumns: ["org_id"];
|
|
764
767
|
}
|
|
765
768
|
];
|
|
766
769
|
};
|
|
@@ -772,6 +775,7 @@ export type Database = {
|
|
|
772
775
|
chat_name: string | null;
|
|
773
776
|
chat_type: string | null;
|
|
774
777
|
created_at: string;
|
|
778
|
+
flag_count: number;
|
|
775
779
|
group_metadata: Json | null;
|
|
776
780
|
id: Json | null;
|
|
777
781
|
invite_link: string | null;
|
|
@@ -796,6 +800,7 @@ export type Database = {
|
|
|
796
800
|
chat_name?: string | null;
|
|
797
801
|
chat_type?: string | null;
|
|
798
802
|
created_at?: string;
|
|
803
|
+
flag_count?: number;
|
|
799
804
|
group_metadata?: Json | null;
|
|
800
805
|
id?: Json | null;
|
|
801
806
|
invite_link?: string | null;
|
|
@@ -820,6 +825,7 @@ export type Database = {
|
|
|
820
825
|
chat_name?: string | null;
|
|
821
826
|
chat_type?: string | null;
|
|
822
827
|
created_at?: string;
|
|
828
|
+
flag_count?: number;
|
|
823
829
|
group_metadata?: Json | null;
|
|
824
830
|
id?: Json | null;
|
|
825
831
|
invite_link?: string | null;
|
|
@@ -839,18 +845,18 @@ export type Database = {
|
|
|
839
845
|
};
|
|
840
846
|
Relationships: [
|
|
841
847
|
{
|
|
842
|
-
foreignKeyName:
|
|
843
|
-
columns: [
|
|
848
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
849
|
+
columns: ["org_phone", "org_id"];
|
|
844
850
|
isOneToOne: false;
|
|
845
|
-
referencedRelation:
|
|
846
|
-
referencedColumns: [
|
|
851
|
+
referencedRelation: "tbl_org_phones";
|
|
852
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
847
853
|
}
|
|
848
854
|
];
|
|
849
855
|
};
|
|
850
856
|
tbl_contacts: {
|
|
851
857
|
Row: {
|
|
852
858
|
business_profile: Json | null;
|
|
853
|
-
contact_color: Database[
|
|
859
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
854
860
|
contact_id: string;
|
|
855
861
|
contact_image: string | null;
|
|
856
862
|
contact_name: string | null;
|
|
@@ -878,7 +884,7 @@ export type Database = {
|
|
|
878
884
|
};
|
|
879
885
|
Insert: {
|
|
880
886
|
business_profile?: Json | null;
|
|
881
|
-
contact_color?: Database[
|
|
887
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
882
888
|
contact_id: string;
|
|
883
889
|
contact_image?: string | null;
|
|
884
890
|
contact_name?: string | null;
|
|
@@ -906,7 +912,7 @@ export type Database = {
|
|
|
906
912
|
};
|
|
907
913
|
Update: {
|
|
908
914
|
business_profile?: Json | null;
|
|
909
|
-
contact_color?: Database[
|
|
915
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
910
916
|
contact_id?: string;
|
|
911
917
|
contact_image?: string | null;
|
|
912
918
|
contact_name?: string | null;
|
|
@@ -934,18 +940,18 @@ export type Database = {
|
|
|
934
940
|
};
|
|
935
941
|
Relationships: [
|
|
936
942
|
{
|
|
937
|
-
foreignKeyName:
|
|
938
|
-
columns: [
|
|
943
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
944
|
+
columns: ["org_id"];
|
|
939
945
|
isOneToOne: false;
|
|
940
|
-
referencedRelation:
|
|
941
|
-
referencedColumns: [
|
|
946
|
+
referencedRelation: "tbl_org";
|
|
947
|
+
referencedColumns: ["org_id"];
|
|
942
948
|
},
|
|
943
949
|
{
|
|
944
|
-
foreignKeyName:
|
|
945
|
-
columns: [
|
|
950
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
951
|
+
columns: ["org_id"];
|
|
946
952
|
isOneToOne: false;
|
|
947
|
-
referencedRelation:
|
|
948
|
-
referencedColumns: [
|
|
953
|
+
referencedRelation: "view_org";
|
|
954
|
+
referencedColumns: ["org_id"];
|
|
949
955
|
}
|
|
950
956
|
];
|
|
951
957
|
};
|
|
@@ -982,18 +988,18 @@ export type Database = {
|
|
|
982
988
|
};
|
|
983
989
|
Relationships: [
|
|
984
990
|
{
|
|
985
|
-
foreignKeyName:
|
|
986
|
-
columns: [
|
|
991
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
992
|
+
columns: ["org_id"];
|
|
987
993
|
isOneToOne: false;
|
|
988
|
-
referencedRelation:
|
|
989
|
-
referencedColumns: [
|
|
994
|
+
referencedRelation: "tbl_org";
|
|
995
|
+
referencedColumns: ["org_id"];
|
|
990
996
|
},
|
|
991
997
|
{
|
|
992
|
-
foreignKeyName:
|
|
993
|
-
columns: [
|
|
998
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
999
|
+
columns: ["org_id"];
|
|
994
1000
|
isOneToOne: false;
|
|
995
|
-
referencedRelation:
|
|
996
|
-
referencedColumns: [
|
|
1001
|
+
referencedRelation: "view_org";
|
|
1002
|
+
referencedColumns: ["org_id"];
|
|
997
1003
|
}
|
|
998
1004
|
];
|
|
999
1005
|
};
|
|
@@ -1003,51 +1009,51 @@ export type Database = {
|
|
|
1003
1009
|
id: string;
|
|
1004
1010
|
integration_id: string | null;
|
|
1005
1011
|
integration_metadata: Json;
|
|
1006
|
-
integration_name: Database[
|
|
1012
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1007
1013
|
integration_type: string;
|
|
1008
1014
|
is_subscribed: boolean;
|
|
1009
1015
|
org_id: string;
|
|
1010
1016
|
subscribed_at: string;
|
|
1011
|
-
type: Database[
|
|
1017
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1012
1018
|
};
|
|
1013
1019
|
Insert: {
|
|
1014
1020
|
hook_url: string;
|
|
1015
1021
|
id?: string;
|
|
1016
1022
|
integration_id?: string | null;
|
|
1017
1023
|
integration_metadata: Json;
|
|
1018
|
-
integration_name: Database[
|
|
1024
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1019
1025
|
integration_type: string;
|
|
1020
1026
|
is_subscribed: boolean;
|
|
1021
1027
|
org_id: string;
|
|
1022
1028
|
subscribed_at?: string;
|
|
1023
|
-
type: Database[
|
|
1029
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1024
1030
|
};
|
|
1025
1031
|
Update: {
|
|
1026
1032
|
hook_url?: string;
|
|
1027
1033
|
id?: string;
|
|
1028
1034
|
integration_id?: string | null;
|
|
1029
1035
|
integration_metadata?: Json;
|
|
1030
|
-
integration_name?: Database[
|
|
1036
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1031
1037
|
integration_type?: string;
|
|
1032
1038
|
is_subscribed?: boolean;
|
|
1033
1039
|
org_id?: string;
|
|
1034
1040
|
subscribed_at?: string;
|
|
1035
|
-
type?: Database[
|
|
1041
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1036
1042
|
};
|
|
1037
1043
|
Relationships: [
|
|
1038
1044
|
{
|
|
1039
|
-
foreignKeyName:
|
|
1040
|
-
columns: [
|
|
1045
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1046
|
+
columns: ["org_id"];
|
|
1041
1047
|
isOneToOne: false;
|
|
1042
|
-
referencedRelation:
|
|
1043
|
-
referencedColumns: [
|
|
1048
|
+
referencedRelation: "tbl_org";
|
|
1049
|
+
referencedColumns: ["org_id"];
|
|
1044
1050
|
},
|
|
1045
1051
|
{
|
|
1046
|
-
foreignKeyName:
|
|
1047
|
-
columns: [
|
|
1052
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1053
|
+
columns: ["org_id"];
|
|
1048
1054
|
isOneToOne: false;
|
|
1049
|
-
referencedRelation:
|
|
1050
|
-
referencedColumns: [
|
|
1055
|
+
referencedRelation: "view_org";
|
|
1056
|
+
referencedColumns: ["org_id"];
|
|
1051
1057
|
}
|
|
1052
1058
|
];
|
|
1053
1059
|
};
|
|
@@ -1055,50 +1061,50 @@ export type Database = {
|
|
|
1055
1061
|
Row: {
|
|
1056
1062
|
created_at: string;
|
|
1057
1063
|
id: string;
|
|
1058
|
-
integration_name: Database[
|
|
1064
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1059
1065
|
integration_type: string;
|
|
1060
1066
|
metadata: Json;
|
|
1061
1067
|
org_id: string;
|
|
1062
1068
|
response: Json | null;
|
|
1063
1069
|
success: boolean;
|
|
1064
|
-
type: Database[
|
|
1070
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1065
1071
|
};
|
|
1066
1072
|
Insert: {
|
|
1067
1073
|
created_at?: string;
|
|
1068
1074
|
id?: string;
|
|
1069
|
-
integration_name: Database[
|
|
1075
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1070
1076
|
integration_type: string;
|
|
1071
1077
|
metadata?: Json;
|
|
1072
1078
|
org_id: string;
|
|
1073
1079
|
response?: Json | null;
|
|
1074
1080
|
success?: boolean;
|
|
1075
|
-
type: Database[
|
|
1081
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1076
1082
|
};
|
|
1077
1083
|
Update: {
|
|
1078
1084
|
created_at?: string;
|
|
1079
1085
|
id?: string;
|
|
1080
|
-
integration_name?: Database[
|
|
1086
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1081
1087
|
integration_type?: string;
|
|
1082
1088
|
metadata?: Json;
|
|
1083
1089
|
org_id?: string;
|
|
1084
1090
|
response?: Json | null;
|
|
1085
1091
|
success?: boolean;
|
|
1086
|
-
type?: Database[
|
|
1092
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1087
1093
|
};
|
|
1088
1094
|
Relationships: [
|
|
1089
1095
|
{
|
|
1090
|
-
foreignKeyName:
|
|
1091
|
-
columns: [
|
|
1096
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1097
|
+
columns: ["org_id"];
|
|
1092
1098
|
isOneToOne: false;
|
|
1093
|
-
referencedRelation:
|
|
1094
|
-
referencedColumns: [
|
|
1099
|
+
referencedRelation: "tbl_org";
|
|
1100
|
+
referencedColumns: ["org_id"];
|
|
1095
1101
|
},
|
|
1096
1102
|
{
|
|
1097
|
-
foreignKeyName:
|
|
1098
|
-
columns: [
|
|
1103
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1104
|
+
columns: ["org_id"];
|
|
1099
1105
|
isOneToOne: false;
|
|
1100
|
-
referencedRelation:
|
|
1101
|
-
referencedColumns: [
|
|
1106
|
+
referencedRelation: "view_org";
|
|
1107
|
+
referencedColumns: ["org_id"];
|
|
1102
1108
|
}
|
|
1103
1109
|
];
|
|
1104
1110
|
};
|
|
@@ -1113,7 +1119,7 @@ export type Database = {
|
|
|
1113
1119
|
role: string;
|
|
1114
1120
|
token: string;
|
|
1115
1121
|
token_metadata: Json | null;
|
|
1116
|
-
type: Database[
|
|
1122
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1117
1123
|
};
|
|
1118
1124
|
Insert: {
|
|
1119
1125
|
exp: string;
|
|
@@ -1125,7 +1131,7 @@ export type Database = {
|
|
|
1125
1131
|
role: string;
|
|
1126
1132
|
token: string;
|
|
1127
1133
|
token_metadata?: Json | null;
|
|
1128
|
-
type: Database[
|
|
1134
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1129
1135
|
};
|
|
1130
1136
|
Update: {
|
|
1131
1137
|
exp?: string;
|
|
@@ -1137,22 +1143,22 @@ export type Database = {
|
|
|
1137
1143
|
role?: string;
|
|
1138
1144
|
token?: string;
|
|
1139
1145
|
token_metadata?: Json | null;
|
|
1140
|
-
type?: Database[
|
|
1146
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1141
1147
|
};
|
|
1142
1148
|
Relationships: [
|
|
1143
1149
|
{
|
|
1144
|
-
foreignKeyName:
|
|
1145
|
-
columns: [
|
|
1150
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1151
|
+
columns: ["org_id"];
|
|
1146
1152
|
isOneToOne: false;
|
|
1147
|
-
referencedRelation:
|
|
1148
|
-
referencedColumns: [
|
|
1153
|
+
referencedRelation: "tbl_org";
|
|
1154
|
+
referencedColumns: ["org_id"];
|
|
1149
1155
|
},
|
|
1150
1156
|
{
|
|
1151
|
-
foreignKeyName:
|
|
1152
|
-
columns: [
|
|
1157
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1158
|
+
columns: ["org_id"];
|
|
1153
1159
|
isOneToOne: false;
|
|
1154
|
-
referencedRelation:
|
|
1155
|
-
referencedColumns: [
|
|
1160
|
+
referencedRelation: "view_org";
|
|
1161
|
+
referencedColumns: ["org_id"];
|
|
1156
1162
|
}
|
|
1157
1163
|
];
|
|
1158
1164
|
};
|
|
@@ -1222,18 +1228,18 @@ export type Database = {
|
|
|
1222
1228
|
};
|
|
1223
1229
|
Relationships: [
|
|
1224
1230
|
{
|
|
1225
|
-
foreignKeyName:
|
|
1226
|
-
columns: [
|
|
1231
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1232
|
+
columns: ["org_id"];
|
|
1227
1233
|
isOneToOne: false;
|
|
1228
|
-
referencedRelation:
|
|
1229
|
-
referencedColumns: [
|
|
1234
|
+
referencedRelation: "tbl_org";
|
|
1235
|
+
referencedColumns: ["org_id"];
|
|
1230
1236
|
},
|
|
1231
1237
|
{
|
|
1232
|
-
foreignKeyName:
|
|
1233
|
-
columns: [
|
|
1238
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1239
|
+
columns: ["org_id"];
|
|
1234
1240
|
isOneToOne: false;
|
|
1235
|
-
referencedRelation:
|
|
1236
|
-
referencedColumns: [
|
|
1241
|
+
referencedRelation: "view_org";
|
|
1242
|
+
referencedColumns: ["org_id"];
|
|
1237
1243
|
}
|
|
1238
1244
|
];
|
|
1239
1245
|
};
|
|
@@ -1246,13 +1252,13 @@ export type Database = {
|
|
|
1246
1252
|
is_active: boolean;
|
|
1247
1253
|
is_owner: boolean | null;
|
|
1248
1254
|
label_ids: string[] | null;
|
|
1249
|
-
member_color: Database[
|
|
1255
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1250
1256
|
member_image: string | null;
|
|
1251
1257
|
member_name: string | null;
|
|
1252
1258
|
org_id: string;
|
|
1253
1259
|
org_phones: string[] | null;
|
|
1254
1260
|
preferences: Json;
|
|
1255
|
-
role: Database[
|
|
1261
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1256
1262
|
user_id: string | null;
|
|
1257
1263
|
};
|
|
1258
1264
|
Insert: {
|
|
@@ -1263,13 +1269,13 @@ export type Database = {
|
|
|
1263
1269
|
is_active?: boolean;
|
|
1264
1270
|
is_owner?: boolean | null;
|
|
1265
1271
|
label_ids?: string[] | null;
|
|
1266
|
-
member_color?: Database[
|
|
1272
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1267
1273
|
member_image?: string | null;
|
|
1268
1274
|
member_name?: string | null;
|
|
1269
1275
|
org_id: string;
|
|
1270
1276
|
org_phones?: string[] | null;
|
|
1271
1277
|
preferences?: Json;
|
|
1272
|
-
role?: Database[
|
|
1278
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1273
1279
|
user_id?: string | null;
|
|
1274
1280
|
};
|
|
1275
1281
|
Update: {
|
|
@@ -1280,36 +1286,36 @@ export type Database = {
|
|
|
1280
1286
|
is_active?: boolean;
|
|
1281
1287
|
is_owner?: boolean | null;
|
|
1282
1288
|
label_ids?: string[] | null;
|
|
1283
|
-
member_color?: Database[
|
|
1289
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1284
1290
|
member_image?: string | null;
|
|
1285
1291
|
member_name?: string | null;
|
|
1286
1292
|
org_id?: string;
|
|
1287
1293
|
org_phones?: string[] | null;
|
|
1288
1294
|
preferences?: Json;
|
|
1289
|
-
role?: Database[
|
|
1295
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1290
1296
|
user_id?: string | null;
|
|
1291
1297
|
};
|
|
1292
1298
|
Relationships: [
|
|
1293
1299
|
{
|
|
1294
|
-
foreignKeyName:
|
|
1295
|
-
columns: [
|
|
1300
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1301
|
+
columns: ["user_id"];
|
|
1296
1302
|
isOneToOne: false;
|
|
1297
|
-
referencedRelation:
|
|
1298
|
-
referencedColumns: [
|
|
1303
|
+
referencedRelation: "users";
|
|
1304
|
+
referencedColumns: ["id"];
|
|
1299
1305
|
},
|
|
1300
1306
|
{
|
|
1301
|
-
foreignKeyName:
|
|
1302
|
-
columns: [
|
|
1307
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1308
|
+
columns: ["org_id"];
|
|
1303
1309
|
isOneToOne: false;
|
|
1304
|
-
referencedRelation:
|
|
1305
|
-
referencedColumns: [
|
|
1310
|
+
referencedRelation: "tbl_org";
|
|
1311
|
+
referencedColumns: ["org_id"];
|
|
1306
1312
|
},
|
|
1307
1313
|
{
|
|
1308
|
-
foreignKeyName:
|
|
1309
|
-
columns: [
|
|
1314
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1315
|
+
columns: ["org_id"];
|
|
1310
1316
|
isOneToOne: false;
|
|
1311
|
-
referencedRelation:
|
|
1312
|
-
referencedColumns: [
|
|
1317
|
+
referencedRelation: "view_org";
|
|
1318
|
+
referencedColumns: ["org_id"];
|
|
1313
1319
|
}
|
|
1314
1320
|
];
|
|
1315
1321
|
};
|
|
@@ -1373,32 +1379,32 @@ export type Database = {
|
|
|
1373
1379
|
};
|
|
1374
1380
|
Relationships: [
|
|
1375
1381
|
{
|
|
1376
|
-
foreignKeyName:
|
|
1377
|
-
columns: [
|
|
1382
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1383
|
+
columns: ["org_id"];
|
|
1378
1384
|
isOneToOne: false;
|
|
1379
|
-
referencedRelation:
|
|
1380
|
-
referencedColumns: [
|
|
1385
|
+
referencedRelation: "tbl_org";
|
|
1386
|
+
referencedColumns: ["org_id"];
|
|
1381
1387
|
},
|
|
1382
1388
|
{
|
|
1383
|
-
foreignKeyName:
|
|
1384
|
-
columns: [
|
|
1389
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1390
|
+
columns: ["org_id"];
|
|
1385
1391
|
isOneToOne: false;
|
|
1386
|
-
referencedRelation:
|
|
1387
|
-
referencedColumns: [
|
|
1392
|
+
referencedRelation: "view_org";
|
|
1393
|
+
referencedColumns: ["org_id"];
|
|
1388
1394
|
},
|
|
1389
1395
|
{
|
|
1390
|
-
foreignKeyName:
|
|
1391
|
-
columns: [
|
|
1396
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1397
|
+
columns: ["org_id"];
|
|
1392
1398
|
isOneToOne: false;
|
|
1393
|
-
referencedRelation:
|
|
1394
|
-
referencedColumns: [
|
|
1399
|
+
referencedRelation: "tbl_org";
|
|
1400
|
+
referencedColumns: ["org_id"];
|
|
1395
1401
|
},
|
|
1396
1402
|
{
|
|
1397
|
-
foreignKeyName:
|
|
1398
|
-
columns: [
|
|
1403
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1404
|
+
columns: ["org_id"];
|
|
1399
1405
|
isOneToOne: false;
|
|
1400
|
-
referencedRelation:
|
|
1401
|
-
referencedColumns: [
|
|
1406
|
+
referencedRelation: "view_org";
|
|
1407
|
+
referencedColumns: ["org_id"];
|
|
1402
1408
|
}
|
|
1403
1409
|
];
|
|
1404
1410
|
};
|
|
@@ -1426,18 +1432,18 @@ export type Database = {
|
|
|
1426
1432
|
};
|
|
1427
1433
|
Relationships: [
|
|
1428
1434
|
{
|
|
1429
|
-
foreignKeyName:
|
|
1430
|
-
columns: [
|
|
1435
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1436
|
+
columns: ["org_id"];
|
|
1431
1437
|
isOneToOne: false;
|
|
1432
|
-
referencedRelation:
|
|
1433
|
-
referencedColumns: [
|
|
1438
|
+
referencedRelation: "tbl_org";
|
|
1439
|
+
referencedColumns: ["org_id"];
|
|
1434
1440
|
},
|
|
1435
1441
|
{
|
|
1436
|
-
foreignKeyName:
|
|
1437
|
-
columns: [
|
|
1442
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1443
|
+
columns: ["org_id"];
|
|
1438
1444
|
isOneToOne: false;
|
|
1439
|
-
referencedRelation:
|
|
1440
|
-
referencedColumns: [
|
|
1445
|
+
referencedRelation: "view_org";
|
|
1446
|
+
referencedColumns: ["org_id"];
|
|
1441
1447
|
}
|
|
1442
1448
|
];
|
|
1443
1449
|
};
|
|
@@ -1470,7 +1476,7 @@ export type Database = {
|
|
|
1470
1476
|
view_broadcast_logs: {
|
|
1471
1477
|
Row: {
|
|
1472
1478
|
broadcast_id: string | null;
|
|
1473
|
-
broadcast_status: Database[
|
|
1479
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1474
1480
|
created_at: string | null;
|
|
1475
1481
|
delivery_percentage: number | null;
|
|
1476
1482
|
failed_chats: number | null;
|
|
@@ -1489,18 +1495,18 @@ export type Database = {
|
|
|
1489
1495
|
};
|
|
1490
1496
|
Relationships: [
|
|
1491
1497
|
{
|
|
1492
|
-
foreignKeyName:
|
|
1493
|
-
columns: [
|
|
1498
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1499
|
+
columns: ["org_id"];
|
|
1494
1500
|
isOneToOne: false;
|
|
1495
|
-
referencedRelation:
|
|
1496
|
-
referencedColumns: [
|
|
1501
|
+
referencedRelation: "tbl_org";
|
|
1502
|
+
referencedColumns: ["org_id"];
|
|
1497
1503
|
},
|
|
1498
1504
|
{
|
|
1499
|
-
foreignKeyName:
|
|
1500
|
-
columns: [
|
|
1505
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1506
|
+
columns: ["org_id"];
|
|
1501
1507
|
isOneToOne: false;
|
|
1502
|
-
referencedRelation:
|
|
1503
|
-
referencedColumns: [
|
|
1508
|
+
referencedRelation: "view_org";
|
|
1509
|
+
referencedColumns: ["org_id"];
|
|
1504
1510
|
}
|
|
1505
1511
|
];
|
|
1506
1512
|
};
|
|
@@ -1520,18 +1526,18 @@ export type Database = {
|
|
|
1520
1526
|
};
|
|
1521
1527
|
Relationships: [
|
|
1522
1528
|
{
|
|
1523
|
-
foreignKeyName:
|
|
1524
|
-
columns: [
|
|
1529
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1530
|
+
columns: ["org_id"];
|
|
1525
1531
|
isOneToOne: false;
|
|
1526
|
-
referencedRelation:
|
|
1527
|
-
referencedColumns: [
|
|
1532
|
+
referencedRelation: "tbl_org";
|
|
1533
|
+
referencedColumns: ["org_id"];
|
|
1528
1534
|
},
|
|
1529
1535
|
{
|
|
1530
|
-
foreignKeyName:
|
|
1531
|
-
columns: [
|
|
1536
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1537
|
+
columns: ["org_id"];
|
|
1532
1538
|
isOneToOne: false;
|
|
1533
|
-
referencedRelation:
|
|
1534
|
-
referencedColumns: [
|
|
1539
|
+
referencedRelation: "view_org";
|
|
1540
|
+
referencedColumns: ["org_id"];
|
|
1535
1541
|
}
|
|
1536
1542
|
];
|
|
1537
1543
|
};
|
|
@@ -1572,6 +1578,7 @@ export type Database = {
|
|
|
1572
1578
|
is_enterprise: boolean | null;
|
|
1573
1579
|
is_free_trial: boolean | null;
|
|
1574
1580
|
is_hubspot_connected: boolean | null;
|
|
1581
|
+
is_freshdesk_connected: boolean | null;
|
|
1575
1582
|
org_id: string | null;
|
|
1576
1583
|
org_image: string | null;
|
|
1577
1584
|
org_metadata: Json | null;
|
|
@@ -1593,6 +1600,7 @@ export type Database = {
|
|
|
1593
1600
|
is_enterprise?: never;
|
|
1594
1601
|
is_free_trial?: never;
|
|
1595
1602
|
is_hubspot_connected?: never;
|
|
1603
|
+
is_freshdesk_connected?: never;
|
|
1596
1604
|
org_id?: string | null;
|
|
1597
1605
|
org_image?: string | null;
|
|
1598
1606
|
org_metadata?: Json | null;
|
|
@@ -1614,6 +1622,7 @@ export type Database = {
|
|
|
1614
1622
|
is_enterprise?: never;
|
|
1615
1623
|
is_free_trial?: never;
|
|
1616
1624
|
is_hubspot_connected?: never;
|
|
1625
|
+
is_freshdesk_connected?: never;
|
|
1617
1626
|
org_id?: string | null;
|
|
1618
1627
|
org_image?: string | null;
|
|
1619
1628
|
org_metadata?: Json | null;
|
|
@@ -1668,7 +1677,7 @@ export type Database = {
|
|
|
1668
1677
|
generate_access_token: {
|
|
1669
1678
|
Args: {
|
|
1670
1679
|
name_input?: string;
|
|
1671
|
-
type_input?: Database[
|
|
1680
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1672
1681
|
org_id_input?: string;
|
|
1673
1682
|
};
|
|
1674
1683
|
Returns: Json;
|
|
@@ -1678,7 +1687,7 @@ export type Database = {
|
|
|
1678
1687
|
org_id_input?: string;
|
|
1679
1688
|
org_phone_input?: string;
|
|
1680
1689
|
token_id_input?: string;
|
|
1681
|
-
token_type_input?: Database[
|
|
1690
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1682
1691
|
};
|
|
1683
1692
|
Returns: Json;
|
|
1684
1693
|
};
|
|
@@ -1694,6 +1703,7 @@ export type Database = {
|
|
|
1694
1703
|
org_id_input: string;
|
|
1695
1704
|
chat_id_input?: string[];
|
|
1696
1705
|
with_members?: boolean;
|
|
1706
|
+
last_updated_at?: string;
|
|
1697
1707
|
};
|
|
1698
1708
|
Returns: Json;
|
|
1699
1709
|
};
|
|
@@ -1801,7 +1811,7 @@ export type Database = {
|
|
|
1801
1811
|
};
|
|
1802
1812
|
list_role_from_user: {
|
|
1803
1813
|
Args: Record<PropertyKey, never>;
|
|
1804
|
-
Returns: Database[
|
|
1814
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1805
1815
|
};
|
|
1806
1816
|
update_labels: {
|
|
1807
1817
|
Args: {
|
|
@@ -1814,12 +1824,12 @@ export type Database = {
|
|
|
1814
1824
|
};
|
|
1815
1825
|
};
|
|
1816
1826
|
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:
|
|
1827
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped";
|
|
1828
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1829
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1830
|
+
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";
|
|
1831
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk";
|
|
1832
|
+
enum_member_role: "admin" | "member";
|
|
1823
1833
|
};
|
|
1824
1834
|
CompositeTypes: {
|
|
1825
1835
|
[_ in never]: never;
|
|
@@ -1929,11 +1939,11 @@ export type Database = {
|
|
|
1929
1939
|
};
|
|
1930
1940
|
Relationships: [
|
|
1931
1941
|
{
|
|
1932
|
-
foreignKeyName:
|
|
1933
|
-
columns: [
|
|
1942
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1943
|
+
columns: ["bucket_id"];
|
|
1934
1944
|
isOneToOne: false;
|
|
1935
|
-
referencedRelation:
|
|
1936
|
-
referencedColumns: [
|
|
1945
|
+
referencedRelation: "buckets";
|
|
1946
|
+
referencedColumns: ["id"];
|
|
1937
1947
|
}
|
|
1938
1948
|
];
|
|
1939
1949
|
};
|
|
@@ -1970,11 +1980,11 @@ export type Database = {
|
|
|
1970
1980
|
};
|
|
1971
1981
|
Relationships: [
|
|
1972
1982
|
{
|
|
1973
|
-
foreignKeyName:
|
|
1974
|
-
columns: [
|
|
1983
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
1984
|
+
columns: ["bucket_id"];
|
|
1975
1985
|
isOneToOne: false;
|
|
1976
|
-
referencedRelation:
|
|
1977
|
-
referencedColumns: [
|
|
1986
|
+
referencedRelation: "buckets";
|
|
1987
|
+
referencedColumns: ["id"];
|
|
1978
1988
|
}
|
|
1979
1989
|
];
|
|
1980
1990
|
};
|
|
@@ -2017,18 +2027,18 @@ export type Database = {
|
|
|
2017
2027
|
};
|
|
2018
2028
|
Relationships: [
|
|
2019
2029
|
{
|
|
2020
|
-
foreignKeyName:
|
|
2021
|
-
columns: [
|
|
2030
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2031
|
+
columns: ["bucket_id"];
|
|
2022
2032
|
isOneToOne: false;
|
|
2023
|
-
referencedRelation:
|
|
2024
|
-
referencedColumns: [
|
|
2033
|
+
referencedRelation: "buckets";
|
|
2034
|
+
referencedColumns: ["id"];
|
|
2025
2035
|
},
|
|
2026
2036
|
{
|
|
2027
|
-
foreignKeyName:
|
|
2028
|
-
columns: [
|
|
2037
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2038
|
+
columns: ["upload_id"];
|
|
2029
2039
|
isOneToOne: false;
|
|
2030
|
-
referencedRelation:
|
|
2031
|
-
referencedColumns: [
|
|
2040
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2041
|
+
referencedColumns: ["id"];
|
|
2032
2042
|
}
|
|
2033
2043
|
];
|
|
2034
2044
|
};
|
|
@@ -2135,45 +2145,45 @@ export type Database = {
|
|
|
2135
2145
|
};
|
|
2136
2146
|
};
|
|
2137
2147
|
};
|
|
2138
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2139
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2148
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2149
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
2140
2150
|
schema: keyof Database;
|
|
2141
2151
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2142
2152
|
schema: keyof Database;
|
|
2143
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2153
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
2144
2154
|
schema: keyof Database;
|
|
2145
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2155
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2146
2156
|
Row: infer R;
|
|
2147
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2157
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
2148
2158
|
Row: infer R;
|
|
2149
2159
|
} ? R : never : never;
|
|
2150
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2160
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2151
2161
|
schema: keyof Database;
|
|
2152
2162
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2153
2163
|
schema: keyof Database;
|
|
2154
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2164
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2155
2165
|
schema: keyof Database;
|
|
2156
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2166
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2157
2167
|
Insert: infer I;
|
|
2158
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2168
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2159
2169
|
Insert: infer I;
|
|
2160
2170
|
} ? I : never : never;
|
|
2161
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2171
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2162
2172
|
schema: keyof Database;
|
|
2163
2173
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2164
2174
|
schema: keyof Database;
|
|
2165
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2175
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2166
2176
|
schema: keyof Database;
|
|
2167
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2177
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2168
2178
|
Update: infer U;
|
|
2169
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2179
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2170
2180
|
Update: infer U;
|
|
2171
2181
|
} ? U : never : never;
|
|
2172
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2182
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2173
2183
|
schema: keyof Database;
|
|
2174
2184
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2175
2185
|
schema: keyof Database;
|
|
2176
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2186
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2177
2187
|
schema: keyof Database;
|
|
2178
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2188
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2179
2189
|
export {};
|