@periskope/types 0.6.100 → 0.6.101
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 +241 -245
- package/dist/types.d.ts +1 -2
- package/package.json +1 -1
- package/supabase.types.ts +2027 -2026
- package/types.ts +1 -2
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
|
};
|
|
@@ -486,11 +486,11 @@ export type Database = {
|
|
|
486
486
|
};
|
|
487
487
|
Relationships: [
|
|
488
488
|
{
|
|
489
|
-
foreignKeyName:
|
|
490
|
-
columns: [
|
|
489
|
+
foreignKeyName: 'tbl_chat_messages_parent_fkey_tbl_org_phones';
|
|
490
|
+
columns: ['org_phone', 'org_id'];
|
|
491
491
|
isOneToOne: false;
|
|
492
|
-
referencedRelation:
|
|
493
|
-
referencedColumns: [
|
|
492
|
+
referencedRelation: 'tbl_org_phones';
|
|
493
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
494
494
|
}
|
|
495
495
|
];
|
|
496
496
|
};
|
|
@@ -842,11 +842,11 @@ export type Database = {
|
|
|
842
842
|
};
|
|
843
843
|
Relationships: [
|
|
844
844
|
{
|
|
845
|
-
foreignKeyName:
|
|
846
|
-
columns: [
|
|
845
|
+
foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
|
|
846
|
+
columns: ['org_id', 'org_phone'];
|
|
847
847
|
isOneToOne: false;
|
|
848
|
-
referencedRelation:
|
|
849
|
-
referencedColumns: [
|
|
848
|
+
referencedRelation: 'tbl_org_phones';
|
|
849
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
850
850
|
}
|
|
851
851
|
];
|
|
852
852
|
};
|
|
@@ -880,11 +880,11 @@ export type Database = {
|
|
|
880
880
|
};
|
|
881
881
|
Relationships: [
|
|
882
882
|
{
|
|
883
|
-
foreignKeyName:
|
|
884
|
-
columns: [
|
|
883
|
+
foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
|
|
884
|
+
columns: ['org_id', 'org_phone', 'chat_id'];
|
|
885
885
|
isOneToOne: false;
|
|
886
|
-
referencedRelation:
|
|
887
|
-
referencedColumns: [
|
|
886
|
+
referencedRelation: 'tbl_chats';
|
|
887
|
+
referencedColumns: ['org_id', 'org_phone', 'chat_id'];
|
|
888
888
|
}
|
|
889
889
|
];
|
|
890
890
|
};
|
|
@@ -969,11 +969,11 @@ export type Database = {
|
|
|
969
969
|
};
|
|
970
970
|
Relationships: [
|
|
971
971
|
{
|
|
972
|
-
foreignKeyName:
|
|
973
|
-
columns: [
|
|
972
|
+
foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
|
|
973
|
+
columns: ['org_id', 'org_phone'];
|
|
974
974
|
isOneToOne: false;
|
|
975
|
-
referencedRelation:
|
|
976
|
-
referencedColumns: [
|
|
975
|
+
referencedRelation: 'tbl_org_phones';
|
|
976
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
977
977
|
}
|
|
978
978
|
];
|
|
979
979
|
};
|
|
@@ -986,7 +986,6 @@ export type Database = {
|
|
|
986
986
|
closed_at: string | null;
|
|
987
987
|
created_at: string;
|
|
988
988
|
due_date: string | null;
|
|
989
|
-
freshdesk_metadata: Json | null;
|
|
990
989
|
hubspot_metadata: Json | null;
|
|
991
990
|
is_deleted: boolean;
|
|
992
991
|
label_ids: Json | null;
|
|
@@ -996,9 +995,10 @@ export type Database = {
|
|
|
996
995
|
quoted_message_id: string | null;
|
|
997
996
|
raised_by: string | null;
|
|
998
997
|
response_time: number | null;
|
|
999
|
-
status: Database[
|
|
998
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
1000
999
|
subject: string;
|
|
1001
1000
|
ticket_id: string;
|
|
1001
|
+
ticket_metadata: Json | null;
|
|
1002
1002
|
};
|
|
1003
1003
|
Insert: {
|
|
1004
1004
|
assigned_by?: string | null;
|
|
@@ -1008,7 +1008,6 @@ export type Database = {
|
|
|
1008
1008
|
closed_at?: string | null;
|
|
1009
1009
|
created_at?: string;
|
|
1010
1010
|
due_date?: string | null;
|
|
1011
|
-
freshdesk_metadata?: Json | null;
|
|
1012
1011
|
hubspot_metadata?: Json | null;
|
|
1013
1012
|
is_deleted?: boolean;
|
|
1014
1013
|
label_ids?: Json | null;
|
|
@@ -1018,9 +1017,10 @@ export type Database = {
|
|
|
1018
1017
|
quoted_message_id?: string | null;
|
|
1019
1018
|
raised_by?: string | null;
|
|
1020
1019
|
response_time?: number | null;
|
|
1021
|
-
status?: Database[
|
|
1020
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
1022
1021
|
subject: string;
|
|
1023
1022
|
ticket_id?: string;
|
|
1023
|
+
ticket_metadata?: Json | null;
|
|
1024
1024
|
};
|
|
1025
1025
|
Update: {
|
|
1026
1026
|
assigned_by?: string | null;
|
|
@@ -1030,7 +1030,6 @@ export type Database = {
|
|
|
1030
1030
|
closed_at?: string | null;
|
|
1031
1031
|
created_at?: string;
|
|
1032
1032
|
due_date?: string | null;
|
|
1033
|
-
freshdesk_metadata?: Json | null;
|
|
1034
1033
|
hubspot_metadata?: Json | null;
|
|
1035
1034
|
is_deleted?: boolean;
|
|
1036
1035
|
label_ids?: Json | null;
|
|
@@ -1040,24 +1039,25 @@ export type Database = {
|
|
|
1040
1039
|
quoted_message_id?: string | null;
|
|
1041
1040
|
raised_by?: string | null;
|
|
1042
1041
|
response_time?: number | null;
|
|
1043
|
-
status?: Database[
|
|
1042
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
1044
1043
|
subject?: string;
|
|
1045
1044
|
ticket_id?: string;
|
|
1045
|
+
ticket_metadata?: Json | null;
|
|
1046
1046
|
};
|
|
1047
1047
|
Relationships: [
|
|
1048
1048
|
{
|
|
1049
|
-
foreignKeyName:
|
|
1050
|
-
columns: [
|
|
1049
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
1050
|
+
columns: ['org_id'];
|
|
1051
1051
|
isOneToOne: false;
|
|
1052
|
-
referencedRelation:
|
|
1053
|
-
referencedColumns: [
|
|
1052
|
+
referencedRelation: 'tbl_org';
|
|
1053
|
+
referencedColumns: ['org_id'];
|
|
1054
1054
|
},
|
|
1055
1055
|
{
|
|
1056
|
-
foreignKeyName:
|
|
1057
|
-
columns: [
|
|
1056
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
1057
|
+
columns: ['org_id'];
|
|
1058
1058
|
isOneToOne: false;
|
|
1059
|
-
referencedRelation:
|
|
1060
|
-
referencedColumns: [
|
|
1059
|
+
referencedRelation: 'view_org';
|
|
1060
|
+
referencedColumns: ['org_id'];
|
|
1061
1061
|
}
|
|
1062
1062
|
];
|
|
1063
1063
|
};
|
|
@@ -1136,18 +1136,18 @@ export type Database = {
|
|
|
1136
1136
|
};
|
|
1137
1137
|
Relationships: [
|
|
1138
1138
|
{
|
|
1139
|
-
foreignKeyName:
|
|
1140
|
-
columns: [
|
|
1139
|
+
foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
|
|
1140
|
+
columns: ['org_phone', 'org_id'];
|
|
1141
1141
|
isOneToOne: false;
|
|
1142
|
-
referencedRelation:
|
|
1143
|
-
referencedColumns: [
|
|
1142
|
+
referencedRelation: 'tbl_org_phones';
|
|
1143
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
1144
1144
|
}
|
|
1145
1145
|
];
|
|
1146
1146
|
};
|
|
1147
1147
|
tbl_contacts: {
|
|
1148
1148
|
Row: {
|
|
1149
1149
|
business_profile: Json | null;
|
|
1150
|
-
contact_color: Database[
|
|
1150
|
+
contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1151
1151
|
contact_id: string;
|
|
1152
1152
|
contact_image: string | null;
|
|
1153
1153
|
contact_name: string | null;
|
|
@@ -1174,7 +1174,7 @@ export type Database = {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
Insert: {
|
|
1176
1176
|
business_profile?: Json | null;
|
|
1177
|
-
contact_color?: Database[
|
|
1177
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1178
1178
|
contact_id: string;
|
|
1179
1179
|
contact_image?: string | null;
|
|
1180
1180
|
contact_name?: string | null;
|
|
@@ -1201,7 +1201,7 @@ export type Database = {
|
|
|
1201
1201
|
};
|
|
1202
1202
|
Update: {
|
|
1203
1203
|
business_profile?: Json | null;
|
|
1204
|
-
contact_color?: Database[
|
|
1204
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1205
1205
|
contact_id?: string;
|
|
1206
1206
|
contact_image?: string | null;
|
|
1207
1207
|
contact_name?: string | null;
|
|
@@ -1228,18 +1228,18 @@ export type Database = {
|
|
|
1228
1228
|
};
|
|
1229
1229
|
Relationships: [
|
|
1230
1230
|
{
|
|
1231
|
-
foreignKeyName:
|
|
1232
|
-
columns: [
|
|
1231
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1232
|
+
columns: ['org_id'];
|
|
1233
1233
|
isOneToOne: false;
|
|
1234
|
-
referencedRelation:
|
|
1235
|
-
referencedColumns: [
|
|
1234
|
+
referencedRelation: 'tbl_org';
|
|
1235
|
+
referencedColumns: ['org_id'];
|
|
1236
1236
|
},
|
|
1237
1237
|
{
|
|
1238
|
-
foreignKeyName:
|
|
1239
|
-
columns: [
|
|
1238
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1239
|
+
columns: ['org_id'];
|
|
1240
1240
|
isOneToOne: false;
|
|
1241
|
-
referencedRelation:
|
|
1242
|
-
referencedColumns: [
|
|
1241
|
+
referencedRelation: 'view_org';
|
|
1242
|
+
referencedColumns: ['org_id'];
|
|
1243
1243
|
}
|
|
1244
1244
|
];
|
|
1245
1245
|
};
|
|
@@ -1276,18 +1276,18 @@ export type Database = {
|
|
|
1276
1276
|
};
|
|
1277
1277
|
Relationships: [
|
|
1278
1278
|
{
|
|
1279
|
-
foreignKeyName:
|
|
1280
|
-
columns: [
|
|
1279
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1280
|
+
columns: ['org_id'];
|
|
1281
1281
|
isOneToOne: false;
|
|
1282
|
-
referencedRelation:
|
|
1283
|
-
referencedColumns: [
|
|
1282
|
+
referencedRelation: 'tbl_org';
|
|
1283
|
+
referencedColumns: ['org_id'];
|
|
1284
1284
|
},
|
|
1285
1285
|
{
|
|
1286
|
-
foreignKeyName:
|
|
1287
|
-
columns: [
|
|
1286
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1287
|
+
columns: ['org_id'];
|
|
1288
1288
|
isOneToOne: false;
|
|
1289
|
-
referencedRelation:
|
|
1290
|
-
referencedColumns: [
|
|
1289
|
+
referencedRelation: 'view_org';
|
|
1290
|
+
referencedColumns: ['org_id'];
|
|
1291
1291
|
}
|
|
1292
1292
|
];
|
|
1293
1293
|
};
|
|
@@ -1297,51 +1297,51 @@ export type Database = {
|
|
|
1297
1297
|
id: string;
|
|
1298
1298
|
integration_id: string | null;
|
|
1299
1299
|
integration_metadata: Json;
|
|
1300
|
-
integration_name: Database[
|
|
1300
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1301
1301
|
integration_type: string;
|
|
1302
1302
|
is_subscribed: boolean;
|
|
1303
1303
|
org_id: string;
|
|
1304
1304
|
subscribed_at: string;
|
|
1305
|
-
type: Database[
|
|
1305
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1306
1306
|
};
|
|
1307
1307
|
Insert: {
|
|
1308
1308
|
hook_url: string;
|
|
1309
1309
|
id?: string;
|
|
1310
1310
|
integration_id?: string | null;
|
|
1311
1311
|
integration_metadata: Json;
|
|
1312
|
-
integration_name: Database[
|
|
1312
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1313
1313
|
integration_type: string;
|
|
1314
1314
|
is_subscribed: boolean;
|
|
1315
1315
|
org_id: string;
|
|
1316
1316
|
subscribed_at?: string;
|
|
1317
|
-
type: Database[
|
|
1317
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1318
1318
|
};
|
|
1319
1319
|
Update: {
|
|
1320
1320
|
hook_url?: string;
|
|
1321
1321
|
id?: string;
|
|
1322
1322
|
integration_id?: string | null;
|
|
1323
1323
|
integration_metadata?: Json;
|
|
1324
|
-
integration_name?: Database[
|
|
1324
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1325
1325
|
integration_type?: string;
|
|
1326
1326
|
is_subscribed?: boolean;
|
|
1327
1327
|
org_id?: string;
|
|
1328
1328
|
subscribed_at?: string;
|
|
1329
|
-
type?: Database[
|
|
1329
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1330
1330
|
};
|
|
1331
1331
|
Relationships: [
|
|
1332
1332
|
{
|
|
1333
|
-
foreignKeyName:
|
|
1334
|
-
columns: [
|
|
1333
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1334
|
+
columns: ['org_id'];
|
|
1335
1335
|
isOneToOne: false;
|
|
1336
|
-
referencedRelation:
|
|
1337
|
-
referencedColumns: [
|
|
1336
|
+
referencedRelation: 'tbl_org';
|
|
1337
|
+
referencedColumns: ['org_id'];
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
|
-
foreignKeyName:
|
|
1341
|
-
columns: [
|
|
1340
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1341
|
+
columns: ['org_id'];
|
|
1342
1342
|
isOneToOne: false;
|
|
1343
|
-
referencedRelation:
|
|
1344
|
-
referencedColumns: [
|
|
1343
|
+
referencedRelation: 'view_org';
|
|
1344
|
+
referencedColumns: ['org_id'];
|
|
1345
1345
|
}
|
|
1346
1346
|
];
|
|
1347
1347
|
};
|
|
@@ -1349,50 +1349,50 @@ export type Database = {
|
|
|
1349
1349
|
Row: {
|
|
1350
1350
|
created_at: string;
|
|
1351
1351
|
id: string;
|
|
1352
|
-
integration_name: Database[
|
|
1352
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1353
1353
|
integration_type: string;
|
|
1354
1354
|
metadata: Json;
|
|
1355
1355
|
org_id: string;
|
|
1356
1356
|
response: Json | null;
|
|
1357
1357
|
success: boolean;
|
|
1358
|
-
type: Database[
|
|
1358
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1359
1359
|
};
|
|
1360
1360
|
Insert: {
|
|
1361
1361
|
created_at?: string;
|
|
1362
1362
|
id?: string;
|
|
1363
|
-
integration_name: Database[
|
|
1363
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1364
1364
|
integration_type: string;
|
|
1365
1365
|
metadata?: Json;
|
|
1366
1366
|
org_id: string;
|
|
1367
1367
|
response?: Json | null;
|
|
1368
1368
|
success?: boolean;
|
|
1369
|
-
type: Database[
|
|
1369
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1370
1370
|
};
|
|
1371
1371
|
Update: {
|
|
1372
1372
|
created_at?: string;
|
|
1373
1373
|
id?: string;
|
|
1374
|
-
integration_name?: Database[
|
|
1374
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1375
1375
|
integration_type?: string;
|
|
1376
1376
|
metadata?: Json;
|
|
1377
1377
|
org_id?: string;
|
|
1378
1378
|
response?: Json | null;
|
|
1379
1379
|
success?: boolean;
|
|
1380
|
-
type?: Database[
|
|
1380
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1381
1381
|
};
|
|
1382
1382
|
Relationships: [
|
|
1383
1383
|
{
|
|
1384
|
-
foreignKeyName:
|
|
1385
|
-
columns: [
|
|
1384
|
+
foreignKeyName: 'tbl_integration_logs_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_integration_logs_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
|
};
|
|
@@ -1407,7 +1407,7 @@ export type Database = {
|
|
|
1407
1407
|
role: string;
|
|
1408
1408
|
token: string;
|
|
1409
1409
|
token_metadata: Json | null;
|
|
1410
|
-
type: Database[
|
|
1410
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1411
1411
|
};
|
|
1412
1412
|
Insert: {
|
|
1413
1413
|
exp: string;
|
|
@@ -1419,7 +1419,7 @@ export type Database = {
|
|
|
1419
1419
|
role: string;
|
|
1420
1420
|
token: string;
|
|
1421
1421
|
token_metadata?: Json | null;
|
|
1422
|
-
type: Database[
|
|
1422
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1423
1423
|
};
|
|
1424
1424
|
Update: {
|
|
1425
1425
|
exp?: string;
|
|
@@ -1431,22 +1431,22 @@ export type Database = {
|
|
|
1431
1431
|
role?: string;
|
|
1432
1432
|
token?: string;
|
|
1433
1433
|
token_metadata?: Json | null;
|
|
1434
|
-
type?: Database[
|
|
1434
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1435
1435
|
};
|
|
1436
1436
|
Relationships: [
|
|
1437
1437
|
{
|
|
1438
|
-
foreignKeyName:
|
|
1439
|
-
columns: [
|
|
1438
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1439
|
+
columns: ['org_id'];
|
|
1440
1440
|
isOneToOne: false;
|
|
1441
|
-
referencedRelation:
|
|
1442
|
-
referencedColumns: [
|
|
1441
|
+
referencedRelation: 'tbl_org';
|
|
1442
|
+
referencedColumns: ['org_id'];
|
|
1443
1443
|
},
|
|
1444
1444
|
{
|
|
1445
|
-
foreignKeyName:
|
|
1446
|
-
columns: [
|
|
1445
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1446
|
+
columns: ['org_id'];
|
|
1447
1447
|
isOneToOne: false;
|
|
1448
|
-
referencedRelation:
|
|
1449
|
-
referencedColumns: [
|
|
1448
|
+
referencedRelation: 'view_org';
|
|
1449
|
+
referencedColumns: ['org_id'];
|
|
1450
1450
|
}
|
|
1451
1451
|
];
|
|
1452
1452
|
};
|
|
@@ -1516,18 +1516,18 @@ export type Database = {
|
|
|
1516
1516
|
};
|
|
1517
1517
|
Relationships: [
|
|
1518
1518
|
{
|
|
1519
|
-
foreignKeyName:
|
|
1520
|
-
columns: [
|
|
1519
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1520
|
+
columns: ['org_id'];
|
|
1521
1521
|
isOneToOne: false;
|
|
1522
|
-
referencedRelation:
|
|
1523
|
-
referencedColumns: [
|
|
1522
|
+
referencedRelation: 'tbl_org';
|
|
1523
|
+
referencedColumns: ['org_id'];
|
|
1524
1524
|
},
|
|
1525
1525
|
{
|
|
1526
|
-
foreignKeyName:
|
|
1527
|
-
columns: [
|
|
1526
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1527
|
+
columns: ['org_id'];
|
|
1528
1528
|
isOneToOne: false;
|
|
1529
|
-
referencedRelation:
|
|
1530
|
-
referencedColumns: [
|
|
1529
|
+
referencedRelation: 'view_org';
|
|
1530
|
+
referencedColumns: ['org_id'];
|
|
1531
1531
|
}
|
|
1532
1532
|
];
|
|
1533
1533
|
};
|
|
@@ -1540,13 +1540,13 @@ export type Database = {
|
|
|
1540
1540
|
is_active: boolean;
|
|
1541
1541
|
is_owner: boolean | null;
|
|
1542
1542
|
label_ids: string[] | null;
|
|
1543
|
-
member_color: Database[
|
|
1543
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1544
1544
|
member_image: string | null;
|
|
1545
1545
|
member_name: string | null;
|
|
1546
1546
|
org_id: string;
|
|
1547
1547
|
org_phones: string[] | null;
|
|
1548
1548
|
preferences: Json;
|
|
1549
|
-
role: Database[
|
|
1549
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1550
1550
|
user_id: string | null;
|
|
1551
1551
|
};
|
|
1552
1552
|
Insert: {
|
|
@@ -1557,13 +1557,13 @@ export type Database = {
|
|
|
1557
1557
|
is_active?: boolean;
|
|
1558
1558
|
is_owner?: boolean | null;
|
|
1559
1559
|
label_ids?: string[] | null;
|
|
1560
|
-
member_color?: Database[
|
|
1560
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1561
1561
|
member_image?: string | null;
|
|
1562
1562
|
member_name?: string | null;
|
|
1563
1563
|
org_id: string;
|
|
1564
1564
|
org_phones?: string[] | null;
|
|
1565
1565
|
preferences?: Json;
|
|
1566
|
-
role?: Database[
|
|
1566
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1567
1567
|
user_id?: string | null;
|
|
1568
1568
|
};
|
|
1569
1569
|
Update: {
|
|
@@ -1574,36 +1574,36 @@ export type Database = {
|
|
|
1574
1574
|
is_active?: boolean;
|
|
1575
1575
|
is_owner?: boolean | null;
|
|
1576
1576
|
label_ids?: string[] | null;
|
|
1577
|
-
member_color?: Database[
|
|
1577
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1578
1578
|
member_image?: string | null;
|
|
1579
1579
|
member_name?: string | null;
|
|
1580
1580
|
org_id?: string;
|
|
1581
1581
|
org_phones?: string[] | null;
|
|
1582
1582
|
preferences?: Json;
|
|
1583
|
-
role?: Database[
|
|
1583
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1584
1584
|
user_id?: string | null;
|
|
1585
1585
|
};
|
|
1586
1586
|
Relationships: [
|
|
1587
1587
|
{
|
|
1588
|
-
foreignKeyName:
|
|
1589
|
-
columns: [
|
|
1588
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1589
|
+
columns: ['user_id'];
|
|
1590
1590
|
isOneToOne: false;
|
|
1591
|
-
referencedRelation:
|
|
1592
|
-
referencedColumns: [
|
|
1591
|
+
referencedRelation: 'users';
|
|
1592
|
+
referencedColumns: ['id'];
|
|
1593
1593
|
},
|
|
1594
1594
|
{
|
|
1595
|
-
foreignKeyName:
|
|
1596
|
-
columns: [
|
|
1595
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1596
|
+
columns: ['org_id'];
|
|
1597
1597
|
isOneToOne: false;
|
|
1598
|
-
referencedRelation:
|
|
1599
|
-
referencedColumns: [
|
|
1598
|
+
referencedRelation: 'tbl_org';
|
|
1599
|
+
referencedColumns: ['org_id'];
|
|
1600
1600
|
},
|
|
1601
1601
|
{
|
|
1602
|
-
foreignKeyName:
|
|
1603
|
-
columns: [
|
|
1602
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1603
|
+
columns: ['org_id'];
|
|
1604
1604
|
isOneToOne: false;
|
|
1605
|
-
referencedRelation:
|
|
1606
|
-
referencedColumns: [
|
|
1605
|
+
referencedRelation: 'view_org';
|
|
1606
|
+
referencedColumns: ['org_id'];
|
|
1607
1607
|
}
|
|
1608
1608
|
];
|
|
1609
1609
|
};
|
|
@@ -1667,32 +1667,32 @@ export type Database = {
|
|
|
1667
1667
|
};
|
|
1668
1668
|
Relationships: [
|
|
1669
1669
|
{
|
|
1670
|
-
foreignKeyName:
|
|
1671
|
-
columns: [
|
|
1670
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1671
|
+
columns: ['org_id'];
|
|
1672
1672
|
isOneToOne: false;
|
|
1673
|
-
referencedRelation:
|
|
1674
|
-
referencedColumns: [
|
|
1673
|
+
referencedRelation: 'tbl_org';
|
|
1674
|
+
referencedColumns: ['org_id'];
|
|
1675
1675
|
},
|
|
1676
1676
|
{
|
|
1677
|
-
foreignKeyName:
|
|
1678
|
-
columns: [
|
|
1677
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1678
|
+
columns: ['org_id'];
|
|
1679
1679
|
isOneToOne: false;
|
|
1680
|
-
referencedRelation:
|
|
1681
|
-
referencedColumns: [
|
|
1680
|
+
referencedRelation: 'view_org';
|
|
1681
|
+
referencedColumns: ['org_id'];
|
|
1682
1682
|
},
|
|
1683
1683
|
{
|
|
1684
|
-
foreignKeyName:
|
|
1685
|
-
columns: [
|
|
1684
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1685
|
+
columns: ['org_id'];
|
|
1686
1686
|
isOneToOne: false;
|
|
1687
|
-
referencedRelation:
|
|
1688
|
-
referencedColumns: [
|
|
1687
|
+
referencedRelation: 'tbl_org';
|
|
1688
|
+
referencedColumns: ['org_id'];
|
|
1689
1689
|
},
|
|
1690
1690
|
{
|
|
1691
|
-
foreignKeyName:
|
|
1692
|
-
columns: [
|
|
1691
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1692
|
+
columns: ['org_id'];
|
|
1693
1693
|
isOneToOne: false;
|
|
1694
|
-
referencedRelation:
|
|
1695
|
-
referencedColumns: [
|
|
1694
|
+
referencedRelation: 'view_org';
|
|
1695
|
+
referencedColumns: ['org_id'];
|
|
1696
1696
|
}
|
|
1697
1697
|
];
|
|
1698
1698
|
};
|
|
@@ -1720,18 +1720,18 @@ export type Database = {
|
|
|
1720
1720
|
};
|
|
1721
1721
|
Relationships: [
|
|
1722
1722
|
{
|
|
1723
|
-
foreignKeyName:
|
|
1724
|
-
columns: [
|
|
1723
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1724
|
+
columns: ['org_id'];
|
|
1725
1725
|
isOneToOne: false;
|
|
1726
|
-
referencedRelation:
|
|
1727
|
-
referencedColumns: [
|
|
1726
|
+
referencedRelation: 'tbl_org';
|
|
1727
|
+
referencedColumns: ['org_id'];
|
|
1728
1728
|
},
|
|
1729
1729
|
{
|
|
1730
|
-
foreignKeyName:
|
|
1731
|
-
columns: [
|
|
1730
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1731
|
+
columns: ['org_id'];
|
|
1732
1732
|
isOneToOne: false;
|
|
1733
|
-
referencedRelation:
|
|
1734
|
-
referencedColumns: [
|
|
1733
|
+
referencedRelation: 'view_org';
|
|
1734
|
+
referencedColumns: ['org_id'];
|
|
1735
1735
|
}
|
|
1736
1736
|
];
|
|
1737
1737
|
};
|
|
@@ -1764,7 +1764,7 @@ export type Database = {
|
|
|
1764
1764
|
view_broadcast_logs: {
|
|
1765
1765
|
Row: {
|
|
1766
1766
|
broadcast_id: string | null;
|
|
1767
|
-
broadcast_status: Database[
|
|
1767
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
1768
1768
|
created_at: string | null;
|
|
1769
1769
|
delivery_percentage: number | null;
|
|
1770
1770
|
failed_chats: number | null;
|
|
@@ -1783,18 +1783,18 @@ export type Database = {
|
|
|
1783
1783
|
};
|
|
1784
1784
|
Relationships: [
|
|
1785
1785
|
{
|
|
1786
|
-
foreignKeyName:
|
|
1787
|
-
columns: [
|
|
1786
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1787
|
+
columns: ['org_id'];
|
|
1788
1788
|
isOneToOne: false;
|
|
1789
|
-
referencedRelation:
|
|
1790
|
-
referencedColumns: [
|
|
1789
|
+
referencedRelation: 'tbl_org';
|
|
1790
|
+
referencedColumns: ['org_id'];
|
|
1791
1791
|
},
|
|
1792
1792
|
{
|
|
1793
|
-
foreignKeyName:
|
|
1794
|
-
columns: [
|
|
1793
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1794
|
+
columns: ['org_id'];
|
|
1795
1795
|
isOneToOne: false;
|
|
1796
|
-
referencedRelation:
|
|
1797
|
-
referencedColumns: [
|
|
1796
|
+
referencedRelation: 'view_org';
|
|
1797
|
+
referencedColumns: ['org_id'];
|
|
1798
1798
|
}
|
|
1799
1799
|
];
|
|
1800
1800
|
};
|
|
@@ -1865,7 +1865,6 @@ export type Database = {
|
|
|
1865
1865
|
is_enterprise: boolean | null;
|
|
1866
1866
|
is_free_trial: boolean | null;
|
|
1867
1867
|
is_hubspot_connected: boolean | null;
|
|
1868
|
-
is_freshdesk_connected: boolean | null;
|
|
1869
1868
|
org_id: string | null;
|
|
1870
1869
|
org_image: string | null;
|
|
1871
1870
|
org_metadata: Json | null;
|
|
@@ -1887,7 +1886,6 @@ export type Database = {
|
|
|
1887
1886
|
is_enterprise?: never;
|
|
1888
1887
|
is_free_trial?: never;
|
|
1889
1888
|
is_hubspot_connected?: never;
|
|
1890
|
-
is_freshdesk_connected?: never;
|
|
1891
1889
|
org_id?: string | null;
|
|
1892
1890
|
org_image?: string | null;
|
|
1893
1891
|
org_metadata?: Json | null;
|
|
@@ -1909,7 +1907,6 @@ export type Database = {
|
|
|
1909
1907
|
is_enterprise?: never;
|
|
1910
1908
|
is_free_trial?: never;
|
|
1911
1909
|
is_hubspot_connected?: never;
|
|
1912
|
-
is_freshdesk_connected?: never;
|
|
1913
1910
|
org_id?: string | null;
|
|
1914
1911
|
org_image?: string | null;
|
|
1915
1912
|
org_metadata?: Json | null;
|
|
@@ -1935,6 +1932,12 @@ export type Database = {
|
|
|
1935
1932
|
};
|
|
1936
1933
|
Returns: boolean;
|
|
1937
1934
|
};
|
|
1935
|
+
custom_access_token_hook: {
|
|
1936
|
+
Args: {
|
|
1937
|
+
event: Json;
|
|
1938
|
+
};
|
|
1939
|
+
Returns: Json;
|
|
1940
|
+
};
|
|
1938
1941
|
drop_partition: {
|
|
1939
1942
|
Args: {
|
|
1940
1943
|
org_id_input: string;
|
|
@@ -1958,7 +1961,7 @@ export type Database = {
|
|
|
1958
1961
|
generate_access_token: {
|
|
1959
1962
|
Args: {
|
|
1960
1963
|
name_input?: string;
|
|
1961
|
-
type_input?: Database[
|
|
1964
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1962
1965
|
org_id_input?: string;
|
|
1963
1966
|
};
|
|
1964
1967
|
Returns: Json;
|
|
@@ -1968,7 +1971,7 @@ export type Database = {
|
|
|
1968
1971
|
org_id_input?: string;
|
|
1969
1972
|
org_phone_input?: string;
|
|
1970
1973
|
token_id_input?: string;
|
|
1971
|
-
token_type_input?: Database[
|
|
1974
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1972
1975
|
};
|
|
1973
1976
|
Returns: Json;
|
|
1974
1977
|
};
|
|
@@ -1979,17 +1982,11 @@ export type Database = {
|
|
|
1979
1982
|
};
|
|
1980
1983
|
Returns: Json[];
|
|
1981
1984
|
};
|
|
1982
|
-
get_chat_members: {
|
|
1983
|
-
Args: {
|
|
1984
|
-
org_id_input?: string;
|
|
1985
|
-
chat_id_input?: string[];
|
|
1986
|
-
};
|
|
1987
|
-
Returns: Json;
|
|
1988
|
-
};
|
|
1989
1985
|
get_chats: {
|
|
1990
1986
|
Args: {
|
|
1991
|
-
org_id_input
|
|
1987
|
+
org_id_input: string;
|
|
1992
1988
|
chat_id_input?: string[];
|
|
1989
|
+
with_members?: boolean;
|
|
1993
1990
|
};
|
|
1994
1991
|
Returns: Json;
|
|
1995
1992
|
};
|
|
@@ -2036,9 +2033,8 @@ export type Database = {
|
|
|
2036
2033
|
Args: {
|
|
2037
2034
|
org_id_input: string;
|
|
2038
2035
|
chat_id_input?: string[];
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
last_updated_at_input?: string;
|
|
2036
|
+
limit_input?: number;
|
|
2037
|
+
offset_input?: number;
|
|
2042
2038
|
};
|
|
2043
2039
|
Returns: Json;
|
|
2044
2040
|
};
|
|
@@ -2087,7 +2083,7 @@ export type Database = {
|
|
|
2087
2083
|
};
|
|
2088
2084
|
list_role_from_user: {
|
|
2089
2085
|
Args: Record<PropertyKey, never>;
|
|
2090
|
-
Returns: Database[
|
|
2086
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
2091
2087
|
};
|
|
2092
2088
|
update_labels: {
|
|
2093
2089
|
Args: {
|
|
@@ -2100,12 +2096,12 @@ export type Database = {
|
|
|
2100
2096
|
};
|
|
2101
2097
|
};
|
|
2102
2098
|
Enums: {
|
|
2103
|
-
enum_broadcast_status:
|
|
2104
|
-
enum_chat_colors:
|
|
2105
|
-
enum_chat_tickets_status:
|
|
2106
|
-
enum_integration_name:
|
|
2107
|
-
enum_integration_type:
|
|
2108
|
-
enum_member_role:
|
|
2099
|
+
enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
|
|
2100
|
+
enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
|
|
2101
|
+
enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
|
|
2102
|
+
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';
|
|
2103
|
+
enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce';
|
|
2104
|
+
enum_member_role: 'admin' | 'member';
|
|
2109
2105
|
};
|
|
2110
2106
|
CompositeTypes: {
|
|
2111
2107
|
[_ in never]: never;
|
|
@@ -2215,11 +2211,11 @@ export type Database = {
|
|
|
2215
2211
|
};
|
|
2216
2212
|
Relationships: [
|
|
2217
2213
|
{
|
|
2218
|
-
foreignKeyName:
|
|
2219
|
-
columns: [
|
|
2214
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
2215
|
+
columns: ['bucket_id'];
|
|
2220
2216
|
isOneToOne: false;
|
|
2221
|
-
referencedRelation:
|
|
2222
|
-
referencedColumns: [
|
|
2217
|
+
referencedRelation: 'buckets';
|
|
2218
|
+
referencedColumns: ['id'];
|
|
2223
2219
|
}
|
|
2224
2220
|
];
|
|
2225
2221
|
};
|
|
@@ -2256,11 +2252,11 @@ export type Database = {
|
|
|
2256
2252
|
};
|
|
2257
2253
|
Relationships: [
|
|
2258
2254
|
{
|
|
2259
|
-
foreignKeyName:
|
|
2260
|
-
columns: [
|
|
2255
|
+
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
2256
|
+
columns: ['bucket_id'];
|
|
2261
2257
|
isOneToOne: false;
|
|
2262
|
-
referencedRelation:
|
|
2263
|
-
referencedColumns: [
|
|
2258
|
+
referencedRelation: 'buckets';
|
|
2259
|
+
referencedColumns: ['id'];
|
|
2264
2260
|
}
|
|
2265
2261
|
];
|
|
2266
2262
|
};
|
|
@@ -2303,18 +2299,18 @@ export type Database = {
|
|
|
2303
2299
|
};
|
|
2304
2300
|
Relationships: [
|
|
2305
2301
|
{
|
|
2306
|
-
foreignKeyName:
|
|
2307
|
-
columns: [
|
|
2302
|
+
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
2303
|
+
columns: ['bucket_id'];
|
|
2308
2304
|
isOneToOne: false;
|
|
2309
|
-
referencedRelation:
|
|
2310
|
-
referencedColumns: [
|
|
2305
|
+
referencedRelation: 'buckets';
|
|
2306
|
+
referencedColumns: ['id'];
|
|
2311
2307
|
},
|
|
2312
2308
|
{
|
|
2313
|
-
foreignKeyName:
|
|
2314
|
-
columns: [
|
|
2309
|
+
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
2310
|
+
columns: ['upload_id'];
|
|
2315
2311
|
isOneToOne: false;
|
|
2316
|
-
referencedRelation:
|
|
2317
|
-
referencedColumns: [
|
|
2312
|
+
referencedRelation: 's3_multipart_uploads';
|
|
2313
|
+
referencedColumns: ['id'];
|
|
2318
2314
|
}
|
|
2319
2315
|
];
|
|
2320
2316
|
};
|
|
@@ -2417,45 +2413,45 @@ export type Database = {
|
|
|
2417
2413
|
};
|
|
2418
2414
|
};
|
|
2419
2415
|
};
|
|
2420
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2421
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2416
|
+
type PublicSchema = Database[Extract<keyof Database, 'public'>];
|
|
2417
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
|
|
2422
2418
|
schema: keyof Database;
|
|
2423
2419
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2424
2420
|
schema: keyof Database;
|
|
2425
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2421
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
2426
2422
|
schema: keyof Database;
|
|
2427
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2423
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2428
2424
|
Row: infer R;
|
|
2429
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2425
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
2430
2426
|
Row: infer R;
|
|
2431
2427
|
} ? R : never : never;
|
|
2432
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2428
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2433
2429
|
schema: keyof Database;
|
|
2434
2430
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2435
2431
|
schema: keyof Database;
|
|
2436
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2432
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2437
2433
|
schema: keyof Database;
|
|
2438
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2434
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2439
2435
|
Insert: infer I;
|
|
2440
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2436
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2441
2437
|
Insert: infer I;
|
|
2442
2438
|
} ? I : never : never;
|
|
2443
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2439
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2444
2440
|
schema: keyof Database;
|
|
2445
2441
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2446
2442
|
schema: keyof Database;
|
|
2447
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2443
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2448
2444
|
schema: keyof Database;
|
|
2449
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2445
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2450
2446
|
Update: infer U;
|
|
2451
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2447
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2452
2448
|
Update: infer U;
|
|
2453
2449
|
} ? U : never : never;
|
|
2454
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2450
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
2455
2451
|
schema: keyof Database;
|
|
2456
2452
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2457
2453
|
schema: keyof Database;
|
|
2458
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2454
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
2459
2455
|
schema: keyof Database;
|
|
2460
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2456
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
2461
2457
|
export {};
|