@periskope/types 0.6.106 → 0.6.108
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 +226 -227
- package/dist/types.d.ts +6 -2
- package/package.json +1 -1
- package/supabase.types.ts +1396 -1397
- package/types.ts +19 -12
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
|
};
|
|
@@ -539,11 +539,11 @@ export type Database = {
|
|
|
539
539
|
};
|
|
540
540
|
Relationships: [
|
|
541
541
|
{
|
|
542
|
-
foreignKeyName:
|
|
543
|
-
columns: [
|
|
542
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
543
|
+
columns: ["org_id", "org_phone"];
|
|
544
544
|
isOneToOne: false;
|
|
545
|
-
referencedRelation:
|
|
546
|
-
referencedColumns: [
|
|
545
|
+
referencedRelation: "tbl_org_phones";
|
|
546
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
547
547
|
}
|
|
548
548
|
];
|
|
549
549
|
};
|
|
@@ -577,11 +577,11 @@ export type Database = {
|
|
|
577
577
|
};
|
|
578
578
|
Relationships: [
|
|
579
579
|
{
|
|
580
|
-
foreignKeyName:
|
|
581
|
-
columns: [
|
|
580
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
581
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
582
582
|
isOneToOne: false;
|
|
583
|
-
referencedRelation:
|
|
584
|
-
referencedColumns: [
|
|
583
|
+
referencedRelation: "tbl_chats";
|
|
584
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
585
585
|
}
|
|
586
586
|
];
|
|
587
587
|
};
|
|
@@ -666,11 +666,11 @@ export type Database = {
|
|
|
666
666
|
};
|
|
667
667
|
Relationships: [
|
|
668
668
|
{
|
|
669
|
-
foreignKeyName:
|
|
670
|
-
columns: [
|
|
669
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
670
|
+
columns: ["org_id", "org_phone"];
|
|
671
671
|
isOneToOne: false;
|
|
672
|
-
referencedRelation:
|
|
673
|
-
referencedColumns: [
|
|
672
|
+
referencedRelation: "tbl_org_phones";
|
|
673
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
674
674
|
}
|
|
675
675
|
];
|
|
676
676
|
};
|
|
@@ -683,6 +683,7 @@ export type Database = {
|
|
|
683
683
|
closed_at: string | null;
|
|
684
684
|
created_at: string;
|
|
685
685
|
due_date: string | null;
|
|
686
|
+
freshdesk_metadata: Json | null;
|
|
686
687
|
hubspot_metadata: Json | null;
|
|
687
688
|
is_deleted: boolean;
|
|
688
689
|
label_ids: Json | null;
|
|
@@ -692,10 +693,9 @@ export type Database = {
|
|
|
692
693
|
quoted_message_id: string | null;
|
|
693
694
|
raised_by: string | null;
|
|
694
695
|
response_time: number | null;
|
|
695
|
-
status: Database[
|
|
696
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
696
697
|
subject: string;
|
|
697
698
|
ticket_id: string;
|
|
698
|
-
ticket_metadata: Json | null;
|
|
699
699
|
};
|
|
700
700
|
Insert: {
|
|
701
701
|
assigned_by?: string | null;
|
|
@@ -705,6 +705,7 @@ export type Database = {
|
|
|
705
705
|
closed_at?: string | null;
|
|
706
706
|
created_at?: string;
|
|
707
707
|
due_date?: string | null;
|
|
708
|
+
freshdesk_metadata?: Json | null;
|
|
708
709
|
hubspot_metadata?: Json | null;
|
|
709
710
|
is_deleted?: boolean;
|
|
710
711
|
label_ids?: Json | null;
|
|
@@ -714,10 +715,9 @@ export type Database = {
|
|
|
714
715
|
quoted_message_id?: string | null;
|
|
715
716
|
raised_by?: string | null;
|
|
716
717
|
response_time?: number | null;
|
|
717
|
-
status?: Database[
|
|
718
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
718
719
|
subject: string;
|
|
719
720
|
ticket_id?: string;
|
|
720
|
-
ticket_metadata?: Json | null;
|
|
721
721
|
};
|
|
722
722
|
Update: {
|
|
723
723
|
assigned_by?: string | null;
|
|
@@ -727,6 +727,7 @@ export type Database = {
|
|
|
727
727
|
closed_at?: string | null;
|
|
728
728
|
created_at?: string;
|
|
729
729
|
due_date?: string | null;
|
|
730
|
+
freshdesk_metadata?: Json | null;
|
|
730
731
|
hubspot_metadata?: Json | null;
|
|
731
732
|
is_deleted?: boolean;
|
|
732
733
|
label_ids?: Json | null;
|
|
@@ -736,25 +737,24 @@ export type Database = {
|
|
|
736
737
|
quoted_message_id?: string | null;
|
|
737
738
|
raised_by?: string | null;
|
|
738
739
|
response_time?: number | null;
|
|
739
|
-
status?: Database[
|
|
740
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
740
741
|
subject?: string;
|
|
741
742
|
ticket_id?: string;
|
|
742
|
-
ticket_metadata?: Json | null;
|
|
743
743
|
};
|
|
744
744
|
Relationships: [
|
|
745
745
|
{
|
|
746
|
-
foreignKeyName:
|
|
747
|
-
columns: [
|
|
746
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
747
|
+
columns: ["org_id"];
|
|
748
748
|
isOneToOne: false;
|
|
749
|
-
referencedRelation:
|
|
750
|
-
referencedColumns: [
|
|
749
|
+
referencedRelation: "tbl_org";
|
|
750
|
+
referencedColumns: ["org_id"];
|
|
751
751
|
},
|
|
752
752
|
{
|
|
753
|
-
foreignKeyName:
|
|
754
|
-
columns: [
|
|
753
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
754
|
+
columns: ["org_id"];
|
|
755
755
|
isOneToOne: false;
|
|
756
|
-
referencedRelation:
|
|
757
|
-
referencedColumns: [
|
|
756
|
+
referencedRelation: "view_org";
|
|
757
|
+
referencedColumns: ["org_id"];
|
|
758
758
|
}
|
|
759
759
|
];
|
|
760
760
|
};
|
|
@@ -833,11 +833,11 @@ export type Database = {
|
|
|
833
833
|
};
|
|
834
834
|
Relationships: [
|
|
835
835
|
{
|
|
836
|
-
foreignKeyName:
|
|
837
|
-
columns: [
|
|
836
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
837
|
+
columns: ["org_phone", "org_id"];
|
|
838
838
|
isOneToOne: false;
|
|
839
|
-
referencedRelation:
|
|
840
|
-
referencedColumns: [
|
|
839
|
+
referencedRelation: "tbl_org_phones";
|
|
840
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
841
841
|
}
|
|
842
842
|
];
|
|
843
843
|
};
|
|
@@ -928,18 +928,18 @@ export type Database = {
|
|
|
928
928
|
};
|
|
929
929
|
Relationships: [
|
|
930
930
|
{
|
|
931
|
-
foreignKeyName:
|
|
932
|
-
columns: [
|
|
931
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
932
|
+
columns: ["org_id"];
|
|
933
933
|
isOneToOne: false;
|
|
934
|
-
referencedRelation:
|
|
935
|
-
referencedColumns: [
|
|
934
|
+
referencedRelation: "tbl_org";
|
|
935
|
+
referencedColumns: ["org_id"];
|
|
936
936
|
},
|
|
937
937
|
{
|
|
938
|
-
foreignKeyName:
|
|
939
|
-
columns: [
|
|
938
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
939
|
+
columns: ["org_id"];
|
|
940
940
|
isOneToOne: false;
|
|
941
|
-
referencedRelation:
|
|
942
|
-
referencedColumns: [
|
|
941
|
+
referencedRelation: "view_org";
|
|
942
|
+
referencedColumns: ["org_id"];
|
|
943
943
|
}
|
|
944
944
|
];
|
|
945
945
|
};
|
|
@@ -976,18 +976,18 @@ export type Database = {
|
|
|
976
976
|
};
|
|
977
977
|
Relationships: [
|
|
978
978
|
{
|
|
979
|
-
foreignKeyName:
|
|
980
|
-
columns: [
|
|
979
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
980
|
+
columns: ["org_id"];
|
|
981
981
|
isOneToOne: false;
|
|
982
|
-
referencedRelation:
|
|
983
|
-
referencedColumns: [
|
|
982
|
+
referencedRelation: "tbl_org";
|
|
983
|
+
referencedColumns: ["org_id"];
|
|
984
984
|
},
|
|
985
985
|
{
|
|
986
|
-
foreignKeyName:
|
|
987
|
-
columns: [
|
|
986
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
987
|
+
columns: ["org_id"];
|
|
988
988
|
isOneToOne: false;
|
|
989
|
-
referencedRelation:
|
|
990
|
-
referencedColumns: [
|
|
989
|
+
referencedRelation: "view_org";
|
|
990
|
+
referencedColumns: ["org_id"];
|
|
991
991
|
}
|
|
992
992
|
];
|
|
993
993
|
};
|
|
@@ -997,51 +997,51 @@ export type Database = {
|
|
|
997
997
|
id: string;
|
|
998
998
|
integration_id: string | null;
|
|
999
999
|
integration_metadata: Json;
|
|
1000
|
-
integration_name: Database[
|
|
1000
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1001
1001
|
integration_type: string;
|
|
1002
1002
|
is_subscribed: boolean;
|
|
1003
1003
|
org_id: string;
|
|
1004
1004
|
subscribed_at: string;
|
|
1005
|
-
type: Database[
|
|
1005
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1006
1006
|
};
|
|
1007
1007
|
Insert: {
|
|
1008
1008
|
hook_url: string;
|
|
1009
1009
|
id?: string;
|
|
1010
1010
|
integration_id?: string | null;
|
|
1011
1011
|
integration_metadata: Json;
|
|
1012
|
-
integration_name: Database[
|
|
1012
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1013
1013
|
integration_type: string;
|
|
1014
1014
|
is_subscribed: boolean;
|
|
1015
1015
|
org_id: string;
|
|
1016
1016
|
subscribed_at?: string;
|
|
1017
|
-
type: Database[
|
|
1017
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1018
1018
|
};
|
|
1019
1019
|
Update: {
|
|
1020
1020
|
hook_url?: string;
|
|
1021
1021
|
id?: string;
|
|
1022
1022
|
integration_id?: string | null;
|
|
1023
1023
|
integration_metadata?: Json;
|
|
1024
|
-
integration_name?: Database[
|
|
1024
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1025
1025
|
integration_type?: string;
|
|
1026
1026
|
is_subscribed?: boolean;
|
|
1027
1027
|
org_id?: string;
|
|
1028
1028
|
subscribed_at?: string;
|
|
1029
|
-
type?: Database[
|
|
1029
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1030
1030
|
};
|
|
1031
1031
|
Relationships: [
|
|
1032
1032
|
{
|
|
1033
|
-
foreignKeyName:
|
|
1034
|
-
columns: [
|
|
1033
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1034
|
+
columns: ["org_id"];
|
|
1035
1035
|
isOneToOne: false;
|
|
1036
|
-
referencedRelation:
|
|
1037
|
-
referencedColumns: [
|
|
1036
|
+
referencedRelation: "tbl_org";
|
|
1037
|
+
referencedColumns: ["org_id"];
|
|
1038
1038
|
},
|
|
1039
1039
|
{
|
|
1040
|
-
foreignKeyName:
|
|
1041
|
-
columns: [
|
|
1040
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1041
|
+
columns: ["org_id"];
|
|
1042
1042
|
isOneToOne: false;
|
|
1043
|
-
referencedRelation:
|
|
1044
|
-
referencedColumns: [
|
|
1043
|
+
referencedRelation: "view_org";
|
|
1044
|
+
referencedColumns: ["org_id"];
|
|
1045
1045
|
}
|
|
1046
1046
|
];
|
|
1047
1047
|
};
|
|
@@ -1049,50 +1049,50 @@ export type Database = {
|
|
|
1049
1049
|
Row: {
|
|
1050
1050
|
created_at: string;
|
|
1051
1051
|
id: string;
|
|
1052
|
-
integration_name: Database[
|
|
1052
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1053
1053
|
integration_type: string;
|
|
1054
1054
|
metadata: Json;
|
|
1055
1055
|
org_id: string;
|
|
1056
1056
|
response: Json | null;
|
|
1057
1057
|
success: boolean;
|
|
1058
|
-
type: Database[
|
|
1058
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1059
1059
|
};
|
|
1060
1060
|
Insert: {
|
|
1061
1061
|
created_at?: string;
|
|
1062
1062
|
id?: string;
|
|
1063
|
-
integration_name: Database[
|
|
1063
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1064
1064
|
integration_type: string;
|
|
1065
1065
|
metadata?: Json;
|
|
1066
1066
|
org_id: string;
|
|
1067
1067
|
response?: Json | null;
|
|
1068
1068
|
success?: boolean;
|
|
1069
|
-
type: Database[
|
|
1069
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1070
1070
|
};
|
|
1071
1071
|
Update: {
|
|
1072
1072
|
created_at?: string;
|
|
1073
1073
|
id?: string;
|
|
1074
|
-
integration_name?: Database[
|
|
1074
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1075
1075
|
integration_type?: string;
|
|
1076
1076
|
metadata?: Json;
|
|
1077
1077
|
org_id?: string;
|
|
1078
1078
|
response?: Json | null;
|
|
1079
1079
|
success?: boolean;
|
|
1080
|
-
type?: Database[
|
|
1080
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1081
1081
|
};
|
|
1082
1082
|
Relationships: [
|
|
1083
1083
|
{
|
|
1084
|
-
foreignKeyName:
|
|
1085
|
-
columns: [
|
|
1084
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1085
|
+
columns: ["org_id"];
|
|
1086
1086
|
isOneToOne: false;
|
|
1087
|
-
referencedRelation:
|
|
1088
|
-
referencedColumns: [
|
|
1087
|
+
referencedRelation: "tbl_org";
|
|
1088
|
+
referencedColumns: ["org_id"];
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
1091
|
-
foreignKeyName:
|
|
1092
|
-
columns: [
|
|
1091
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1092
|
+
columns: ["org_id"];
|
|
1093
1093
|
isOneToOne: false;
|
|
1094
|
-
referencedRelation:
|
|
1095
|
-
referencedColumns: [
|
|
1094
|
+
referencedRelation: "view_org";
|
|
1095
|
+
referencedColumns: ["org_id"];
|
|
1096
1096
|
}
|
|
1097
1097
|
];
|
|
1098
1098
|
};
|
|
@@ -1107,7 +1107,7 @@ export type Database = {
|
|
|
1107
1107
|
role: string;
|
|
1108
1108
|
token: string;
|
|
1109
1109
|
token_metadata: Json | null;
|
|
1110
|
-
type: Database[
|
|
1110
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1111
1111
|
};
|
|
1112
1112
|
Insert: {
|
|
1113
1113
|
exp: string;
|
|
@@ -1119,7 +1119,7 @@ export type Database = {
|
|
|
1119
1119
|
role: string;
|
|
1120
1120
|
token: string;
|
|
1121
1121
|
token_metadata?: Json | null;
|
|
1122
|
-
type: Database[
|
|
1122
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1123
1123
|
};
|
|
1124
1124
|
Update: {
|
|
1125
1125
|
exp?: string;
|
|
@@ -1131,22 +1131,22 @@ export type Database = {
|
|
|
1131
1131
|
role?: string;
|
|
1132
1132
|
token?: string;
|
|
1133
1133
|
token_metadata?: Json | null;
|
|
1134
|
-
type?: Database[
|
|
1134
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1135
1135
|
};
|
|
1136
1136
|
Relationships: [
|
|
1137
1137
|
{
|
|
1138
|
-
foreignKeyName:
|
|
1139
|
-
columns: [
|
|
1138
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1139
|
+
columns: ["org_id"];
|
|
1140
1140
|
isOneToOne: false;
|
|
1141
|
-
referencedRelation:
|
|
1142
|
-
referencedColumns: [
|
|
1141
|
+
referencedRelation: "tbl_org";
|
|
1142
|
+
referencedColumns: ["org_id"];
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
|
-
foreignKeyName:
|
|
1146
|
-
columns: [
|
|
1145
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1146
|
+
columns: ["org_id"];
|
|
1147
1147
|
isOneToOne: false;
|
|
1148
|
-
referencedRelation:
|
|
1149
|
-
referencedColumns: [
|
|
1148
|
+
referencedRelation: "view_org";
|
|
1149
|
+
referencedColumns: ["org_id"];
|
|
1150
1150
|
}
|
|
1151
1151
|
];
|
|
1152
1152
|
};
|
|
@@ -1216,18 +1216,18 @@ export type Database = {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
Relationships: [
|
|
1218
1218
|
{
|
|
1219
|
-
foreignKeyName:
|
|
1220
|
-
columns: [
|
|
1219
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1220
|
+
columns: ["org_id"];
|
|
1221
1221
|
isOneToOne: false;
|
|
1222
|
-
referencedRelation:
|
|
1223
|
-
referencedColumns: [
|
|
1222
|
+
referencedRelation: "tbl_org";
|
|
1223
|
+
referencedColumns: ["org_id"];
|
|
1224
1224
|
},
|
|
1225
1225
|
{
|
|
1226
|
-
foreignKeyName:
|
|
1227
|
-
columns: [
|
|
1226
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1227
|
+
columns: ["org_id"];
|
|
1228
1228
|
isOneToOne: false;
|
|
1229
|
-
referencedRelation:
|
|
1230
|
-
referencedColumns: [
|
|
1229
|
+
referencedRelation: "view_org";
|
|
1230
|
+
referencedColumns: ["org_id"];
|
|
1231
1231
|
}
|
|
1232
1232
|
];
|
|
1233
1233
|
};
|
|
@@ -1240,13 +1240,13 @@ export type Database = {
|
|
|
1240
1240
|
is_active: boolean;
|
|
1241
1241
|
is_owner: boolean | null;
|
|
1242
1242
|
label_ids: string[] | null;
|
|
1243
|
-
member_color: Database[
|
|
1243
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1244
1244
|
member_image: string | null;
|
|
1245
1245
|
member_name: string | null;
|
|
1246
1246
|
org_id: string;
|
|
1247
1247
|
org_phones: string[] | null;
|
|
1248
1248
|
preferences: Json;
|
|
1249
|
-
role: Database[
|
|
1249
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1250
1250
|
user_id: string | null;
|
|
1251
1251
|
};
|
|
1252
1252
|
Insert: {
|
|
@@ -1257,13 +1257,13 @@ export type Database = {
|
|
|
1257
1257
|
is_active?: boolean;
|
|
1258
1258
|
is_owner?: boolean | null;
|
|
1259
1259
|
label_ids?: string[] | null;
|
|
1260
|
-
member_color?: Database[
|
|
1260
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1261
1261
|
member_image?: string | null;
|
|
1262
1262
|
member_name?: string | null;
|
|
1263
1263
|
org_id: string;
|
|
1264
1264
|
org_phones?: string[] | null;
|
|
1265
1265
|
preferences?: Json;
|
|
1266
|
-
role?: Database[
|
|
1266
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1267
1267
|
user_id?: string | null;
|
|
1268
1268
|
};
|
|
1269
1269
|
Update: {
|
|
@@ -1274,36 +1274,36 @@ export type Database = {
|
|
|
1274
1274
|
is_active?: boolean;
|
|
1275
1275
|
is_owner?: boolean | null;
|
|
1276
1276
|
label_ids?: string[] | null;
|
|
1277
|
-
member_color?: Database[
|
|
1277
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1278
1278
|
member_image?: string | null;
|
|
1279
1279
|
member_name?: string | null;
|
|
1280
1280
|
org_id?: string;
|
|
1281
1281
|
org_phones?: string[] | null;
|
|
1282
1282
|
preferences?: Json;
|
|
1283
|
-
role?: Database[
|
|
1283
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1284
1284
|
user_id?: string | null;
|
|
1285
1285
|
};
|
|
1286
1286
|
Relationships: [
|
|
1287
1287
|
{
|
|
1288
|
-
foreignKeyName:
|
|
1289
|
-
columns: [
|
|
1288
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1289
|
+
columns: ["user_id"];
|
|
1290
1290
|
isOneToOne: false;
|
|
1291
|
-
referencedRelation:
|
|
1292
|
-
referencedColumns: [
|
|
1291
|
+
referencedRelation: "users";
|
|
1292
|
+
referencedColumns: ["id"];
|
|
1293
1293
|
},
|
|
1294
1294
|
{
|
|
1295
|
-
foreignKeyName:
|
|
1296
|
-
columns: [
|
|
1295
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1296
|
+
columns: ["org_id"];
|
|
1297
1297
|
isOneToOne: false;
|
|
1298
|
-
referencedRelation:
|
|
1299
|
-
referencedColumns: [
|
|
1298
|
+
referencedRelation: "tbl_org";
|
|
1299
|
+
referencedColumns: ["org_id"];
|
|
1300
1300
|
},
|
|
1301
1301
|
{
|
|
1302
|
-
foreignKeyName:
|
|
1303
|
-
columns: [
|
|
1302
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1303
|
+
columns: ["org_id"];
|
|
1304
1304
|
isOneToOne: false;
|
|
1305
|
-
referencedRelation:
|
|
1306
|
-
referencedColumns: [
|
|
1305
|
+
referencedRelation: "view_org";
|
|
1306
|
+
referencedColumns: ["org_id"];
|
|
1307
1307
|
}
|
|
1308
1308
|
];
|
|
1309
1309
|
};
|
|
@@ -1367,32 +1367,32 @@ export type Database = {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
Relationships: [
|
|
1369
1369
|
{
|
|
1370
|
-
foreignKeyName:
|
|
1371
|
-
columns: [
|
|
1370
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1371
|
+
columns: ["org_id"];
|
|
1372
1372
|
isOneToOne: false;
|
|
1373
|
-
referencedRelation:
|
|
1374
|
-
referencedColumns: [
|
|
1373
|
+
referencedRelation: "tbl_org";
|
|
1374
|
+
referencedColumns: ["org_id"];
|
|
1375
1375
|
},
|
|
1376
1376
|
{
|
|
1377
|
-
foreignKeyName:
|
|
1378
|
-
columns: [
|
|
1377
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1378
|
+
columns: ["org_id"];
|
|
1379
1379
|
isOneToOne: false;
|
|
1380
|
-
referencedRelation:
|
|
1381
|
-
referencedColumns: [
|
|
1380
|
+
referencedRelation: "view_org";
|
|
1381
|
+
referencedColumns: ["org_id"];
|
|
1382
1382
|
},
|
|
1383
1383
|
{
|
|
1384
|
-
foreignKeyName:
|
|
1385
|
-
columns: [
|
|
1384
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1385
|
+
columns: ["org_id"];
|
|
1386
1386
|
isOneToOne: false;
|
|
1387
|
-
referencedRelation:
|
|
1388
|
-
referencedColumns: [
|
|
1387
|
+
referencedRelation: "tbl_org";
|
|
1388
|
+
referencedColumns: ["org_id"];
|
|
1389
1389
|
},
|
|
1390
1390
|
{
|
|
1391
|
-
foreignKeyName:
|
|
1392
|
-
columns: [
|
|
1391
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1392
|
+
columns: ["org_id"];
|
|
1393
1393
|
isOneToOne: false;
|
|
1394
|
-
referencedRelation:
|
|
1395
|
-
referencedColumns: [
|
|
1394
|
+
referencedRelation: "view_org";
|
|
1395
|
+
referencedColumns: ["org_id"];
|
|
1396
1396
|
}
|
|
1397
1397
|
];
|
|
1398
1398
|
};
|
|
@@ -1420,18 +1420,18 @@ export type Database = {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
Relationships: [
|
|
1422
1422
|
{
|
|
1423
|
-
foreignKeyName:
|
|
1424
|
-
columns: [
|
|
1423
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1424
|
+
columns: ["org_id"];
|
|
1425
1425
|
isOneToOne: false;
|
|
1426
|
-
referencedRelation:
|
|
1427
|
-
referencedColumns: [
|
|
1426
|
+
referencedRelation: "tbl_org";
|
|
1427
|
+
referencedColumns: ["org_id"];
|
|
1428
1428
|
},
|
|
1429
1429
|
{
|
|
1430
|
-
foreignKeyName:
|
|
1431
|
-
columns: [
|
|
1430
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1431
|
+
columns: ["org_id"];
|
|
1432
1432
|
isOneToOne: false;
|
|
1433
|
-
referencedRelation:
|
|
1434
|
-
referencedColumns: [
|
|
1433
|
+
referencedRelation: "view_org";
|
|
1434
|
+
referencedColumns: ["org_id"];
|
|
1435
1435
|
}
|
|
1436
1436
|
];
|
|
1437
1437
|
};
|
|
@@ -1464,7 +1464,7 @@ export type Database = {
|
|
|
1464
1464
|
view_broadcast_logs: {
|
|
1465
1465
|
Row: {
|
|
1466
1466
|
broadcast_id: string | null;
|
|
1467
|
-
broadcast_status: Database[
|
|
1467
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1468
1468
|
created_at: string | null;
|
|
1469
1469
|
delivery_percentage: number | null;
|
|
1470
1470
|
failed_chats: number | null;
|
|
@@ -1483,18 +1483,18 @@ export type Database = {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
Relationships: [
|
|
1485
1485
|
{
|
|
1486
|
-
foreignKeyName:
|
|
1487
|
-
columns: [
|
|
1486
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1487
|
+
columns: ["org_id"];
|
|
1488
1488
|
isOneToOne: false;
|
|
1489
|
-
referencedRelation:
|
|
1490
|
-
referencedColumns: [
|
|
1489
|
+
referencedRelation: "tbl_org";
|
|
1490
|
+
referencedColumns: ["org_id"];
|
|
1491
1491
|
},
|
|
1492
1492
|
{
|
|
1493
|
-
foreignKeyName:
|
|
1494
|
-
columns: [
|
|
1493
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1494
|
+
columns: ["org_id"];
|
|
1495
1495
|
isOneToOne: false;
|
|
1496
|
-
referencedRelation:
|
|
1497
|
-
referencedColumns: [
|
|
1496
|
+
referencedRelation: "view_org";
|
|
1497
|
+
referencedColumns: ["org_id"];
|
|
1498
1498
|
}
|
|
1499
1499
|
];
|
|
1500
1500
|
};
|
|
@@ -1565,6 +1565,7 @@ export type Database = {
|
|
|
1565
1565
|
is_enterprise: boolean | null;
|
|
1566
1566
|
is_free_trial: boolean | null;
|
|
1567
1567
|
is_hubspot_connected: boolean | null;
|
|
1568
|
+
is_freshdesk_connected: boolean | null;
|
|
1568
1569
|
org_id: string | null;
|
|
1569
1570
|
org_image: string | null;
|
|
1570
1571
|
org_metadata: Json | null;
|
|
@@ -1586,6 +1587,7 @@ export type Database = {
|
|
|
1586
1587
|
is_enterprise?: never;
|
|
1587
1588
|
is_free_trial?: never;
|
|
1588
1589
|
is_hubspot_connected?: never;
|
|
1590
|
+
is_freshdesk_connected?: never;
|
|
1589
1591
|
org_id?: string | null;
|
|
1590
1592
|
org_image?: string | null;
|
|
1591
1593
|
org_metadata?: Json | null;
|
|
@@ -1607,6 +1609,7 @@ export type Database = {
|
|
|
1607
1609
|
is_enterprise?: never;
|
|
1608
1610
|
is_free_trial?: never;
|
|
1609
1611
|
is_hubspot_connected?: never;
|
|
1612
|
+
is_freshdesk_connected?: never;
|
|
1610
1613
|
org_id?: string | null;
|
|
1611
1614
|
org_image?: string | null;
|
|
1612
1615
|
org_metadata?: Json | null;
|
|
@@ -1661,7 +1664,7 @@ export type Database = {
|
|
|
1661
1664
|
generate_access_token: {
|
|
1662
1665
|
Args: {
|
|
1663
1666
|
name_input?: string;
|
|
1664
|
-
type_input?: Database[
|
|
1667
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1665
1668
|
org_id_input?: string;
|
|
1666
1669
|
};
|
|
1667
1670
|
Returns: Json;
|
|
@@ -1671,7 +1674,7 @@ export type Database = {
|
|
|
1671
1674
|
org_id_input?: string;
|
|
1672
1675
|
org_phone_input?: string;
|
|
1673
1676
|
token_id_input?: string;
|
|
1674
|
-
token_type_input?: Database[
|
|
1677
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1675
1678
|
};
|
|
1676
1679
|
Returns: Json;
|
|
1677
1680
|
};
|
|
@@ -1794,7 +1797,7 @@ export type Database = {
|
|
|
1794
1797
|
};
|
|
1795
1798
|
list_role_from_user: {
|
|
1796
1799
|
Args: Record<PropertyKey, never>;
|
|
1797
|
-
Returns: Database[
|
|
1800
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1798
1801
|
};
|
|
1799
1802
|
update_labels: {
|
|
1800
1803
|
Args: {
|
|
@@ -1807,12 +1810,12 @@ export type Database = {
|
|
|
1807
1810
|
};
|
|
1808
1811
|
};
|
|
1809
1812
|
Enums: {
|
|
1810
|
-
enum_broadcast_status:
|
|
1811
|
-
enum_chat_colors:
|
|
1812
|
-
enum_chat_tickets_status:
|
|
1813
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped";
|
|
1814
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1815
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1813
1816
|
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';
|
|
1814
|
-
enum_integration_type:
|
|
1815
|
-
enum_member_role:
|
|
1817
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
|
|
1818
|
+
enum_member_role: "admin" | "member";
|
|
1816
1819
|
};
|
|
1817
1820
|
CompositeTypes: {
|
|
1818
1821
|
[_ in never]: never;
|
|
@@ -1922,11 +1925,11 @@ export type Database = {
|
|
|
1922
1925
|
};
|
|
1923
1926
|
Relationships: [
|
|
1924
1927
|
{
|
|
1925
|
-
foreignKeyName:
|
|
1926
|
-
columns: [
|
|
1928
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1929
|
+
columns: ["bucket_id"];
|
|
1927
1930
|
isOneToOne: false;
|
|
1928
|
-
referencedRelation:
|
|
1929
|
-
referencedColumns: [
|
|
1931
|
+
referencedRelation: "buckets";
|
|
1932
|
+
referencedColumns: ["id"];
|
|
1930
1933
|
}
|
|
1931
1934
|
];
|
|
1932
1935
|
};
|
|
@@ -1963,11 +1966,11 @@ export type Database = {
|
|
|
1963
1966
|
};
|
|
1964
1967
|
Relationships: [
|
|
1965
1968
|
{
|
|
1966
|
-
foreignKeyName:
|
|
1967
|
-
columns: [
|
|
1969
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
1970
|
+
columns: ["bucket_id"];
|
|
1968
1971
|
isOneToOne: false;
|
|
1969
|
-
referencedRelation:
|
|
1970
|
-
referencedColumns: [
|
|
1972
|
+
referencedRelation: "buckets";
|
|
1973
|
+
referencedColumns: ["id"];
|
|
1971
1974
|
}
|
|
1972
1975
|
];
|
|
1973
1976
|
};
|
|
@@ -2010,18 +2013,18 @@ export type Database = {
|
|
|
2010
2013
|
};
|
|
2011
2014
|
Relationships: [
|
|
2012
2015
|
{
|
|
2013
|
-
foreignKeyName:
|
|
2014
|
-
columns: [
|
|
2016
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2017
|
+
columns: ["bucket_id"];
|
|
2015
2018
|
isOneToOne: false;
|
|
2016
|
-
referencedRelation:
|
|
2017
|
-
referencedColumns: [
|
|
2019
|
+
referencedRelation: "buckets";
|
|
2020
|
+
referencedColumns: ["id"];
|
|
2018
2021
|
},
|
|
2019
2022
|
{
|
|
2020
|
-
foreignKeyName:
|
|
2021
|
-
columns: [
|
|
2023
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2024
|
+
columns: ["upload_id"];
|
|
2022
2025
|
isOneToOne: false;
|
|
2023
|
-
referencedRelation:
|
|
2024
|
-
referencedColumns: [
|
|
2026
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2027
|
+
referencedColumns: ["id"];
|
|
2025
2028
|
}
|
|
2026
2029
|
];
|
|
2027
2030
|
};
|
|
@@ -2095,10 +2098,6 @@ export type Database = {
|
|
|
2095
2098
|
updated_at: string;
|
|
2096
2099
|
}[];
|
|
2097
2100
|
};
|
|
2098
|
-
operation: {
|
|
2099
|
-
Args: Record<PropertyKey, never>;
|
|
2100
|
-
Returns: string;
|
|
2101
|
-
};
|
|
2102
2101
|
search: {
|
|
2103
2102
|
Args: {
|
|
2104
2103
|
prefix: string;
|
|
@@ -2128,45 +2127,45 @@ export type Database = {
|
|
|
2128
2127
|
};
|
|
2129
2128
|
};
|
|
2130
2129
|
};
|
|
2131
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2132
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2130
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2131
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
2133
2132
|
schema: keyof Database;
|
|
2134
2133
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2135
2134
|
schema: keyof Database;
|
|
2136
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2135
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
2137
2136
|
schema: keyof Database;
|
|
2138
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2137
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2139
2138
|
Row: infer R;
|
|
2140
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2139
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
2141
2140
|
Row: infer R;
|
|
2142
2141
|
} ? R : never : never;
|
|
2143
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2142
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2144
2143
|
schema: keyof Database;
|
|
2145
2144
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2146
2145
|
schema: keyof Database;
|
|
2147
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2146
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2148
2147
|
schema: keyof Database;
|
|
2149
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2148
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2150
2149
|
Insert: infer I;
|
|
2151
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2150
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2152
2151
|
Insert: infer I;
|
|
2153
2152
|
} ? I : never : never;
|
|
2154
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2153
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2155
2154
|
schema: keyof Database;
|
|
2156
2155
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2157
2156
|
schema: keyof Database;
|
|
2158
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2157
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2159
2158
|
schema: keyof Database;
|
|
2160
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2159
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2161
2160
|
Update: infer U;
|
|
2162
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2161
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2163
2162
|
Update: infer U;
|
|
2164
2163
|
} ? U : never : never;
|
|
2165
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2164
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2166
2165
|
schema: keyof Database;
|
|
2167
2166
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2168
2167
|
schema: keyof Database;
|
|
2169
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2168
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2170
2169
|
schema: keyof Database;
|
|
2171
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2170
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2172
2171
|
export {};
|