@periskope/types 0.6.143 → 0.6.145
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/rules.types.d.ts +273 -0
- package/dist/rules.types.js +679 -0
- package/dist/supabase.types.d.ts +278 -240
- package/dist/types.d.ts +81 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +1102 -0
- package/supabase.types.ts +2569 -2527
- package/types.ts +720 -584
package/dist/supabase.types.d.ts
CHANGED
|
@@ -200,18 +200,18 @@ export type Database = {
|
|
|
200
200
|
};
|
|
201
201
|
Relationships: [
|
|
202
202
|
{
|
|
203
|
-
foreignKeyName:
|
|
204
|
-
columns: [
|
|
203
|
+
foreignKeyName: 'public_tbl_automation_rules_org_id_fkey';
|
|
204
|
+
columns: ['org_id'];
|
|
205
205
|
isOneToOne: false;
|
|
206
|
-
referencedRelation:
|
|
207
|
-
referencedColumns: [
|
|
206
|
+
referencedRelation: 'tbl_org';
|
|
207
|
+
referencedColumns: ['org_id'];
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
foreignKeyName:
|
|
211
|
-
columns: [
|
|
210
|
+
foreignKeyName: 'public_tbl_automation_rules_org_id_fkey';
|
|
211
|
+
columns: ['org_id'];
|
|
212
212
|
isOneToOne: false;
|
|
213
|
-
referencedRelation:
|
|
214
|
-
referencedColumns: [
|
|
213
|
+
referencedRelation: 'view_org';
|
|
214
|
+
referencedColumns: ['org_id'];
|
|
215
215
|
}
|
|
216
216
|
];
|
|
217
217
|
};
|
|
@@ -263,39 +263,39 @@ export type Database = {
|
|
|
263
263
|
};
|
|
264
264
|
Relationships: [
|
|
265
265
|
{
|
|
266
|
-
foreignKeyName:
|
|
267
|
-
columns: [
|
|
266
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
267
|
+
columns: ['broadcast_id'];
|
|
268
268
|
isOneToOne: false;
|
|
269
|
-
referencedRelation:
|
|
270
|
-
referencedColumns: [
|
|
269
|
+
referencedRelation: 'tbl_broadcast_messages';
|
|
270
|
+
referencedColumns: ['broadcast_id'];
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
foreignKeyName:
|
|
274
|
-
columns: [
|
|
273
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
274
|
+
columns: ['broadcast_id'];
|
|
275
275
|
isOneToOne: false;
|
|
276
|
-
referencedRelation:
|
|
277
|
-
referencedColumns: [
|
|
276
|
+
referencedRelation: 'view_broadcast_logs';
|
|
277
|
+
referencedColumns: ['broadcast_id'];
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
|
-
foreignKeyName:
|
|
281
|
-
columns: [
|
|
280
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
281
|
+
columns: ['org_id'];
|
|
282
282
|
isOneToOne: false;
|
|
283
|
-
referencedRelation:
|
|
284
|
-
referencedColumns: [
|
|
283
|
+
referencedRelation: 'tbl_org';
|
|
284
|
+
referencedColumns: ['org_id'];
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
|
-
foreignKeyName:
|
|
288
|
-
columns: [
|
|
287
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
288
|
+
columns: ['org_id'];
|
|
289
289
|
isOneToOne: false;
|
|
290
|
-
referencedRelation:
|
|
291
|
-
referencedColumns: [
|
|
290
|
+
referencedRelation: 'view_org';
|
|
291
|
+
referencedColumns: ['org_id'];
|
|
292
292
|
}
|
|
293
293
|
];
|
|
294
294
|
};
|
|
295
295
|
tbl_broadcast_messages: {
|
|
296
296
|
Row: {
|
|
297
297
|
broadcast_id: string;
|
|
298
|
-
broadcast_status: Database[
|
|
298
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
299
299
|
chat_ids: string[] | null;
|
|
300
300
|
created_at: string;
|
|
301
301
|
message_payload: Json | null;
|
|
@@ -308,7 +308,7 @@ export type Database = {
|
|
|
308
308
|
};
|
|
309
309
|
Insert: {
|
|
310
310
|
broadcast_id?: string;
|
|
311
|
-
broadcast_status?: Database[
|
|
311
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
312
312
|
chat_ids?: string[] | null;
|
|
313
313
|
created_at?: string;
|
|
314
314
|
message_payload?: Json | null;
|
|
@@ -321,7 +321,7 @@ export type Database = {
|
|
|
321
321
|
};
|
|
322
322
|
Update: {
|
|
323
323
|
broadcast_id?: string;
|
|
324
|
-
broadcast_status?: Database[
|
|
324
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
325
325
|
chat_ids?: string[] | null;
|
|
326
326
|
created_at?: string;
|
|
327
327
|
message_payload?: Json | null;
|
|
@@ -334,18 +334,18 @@ export type Database = {
|
|
|
334
334
|
};
|
|
335
335
|
Relationships: [
|
|
336
336
|
{
|
|
337
|
-
foreignKeyName:
|
|
338
|
-
columns: [
|
|
337
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
338
|
+
columns: ['org_id'];
|
|
339
339
|
isOneToOne: false;
|
|
340
|
-
referencedRelation:
|
|
341
|
-
referencedColumns: [
|
|
340
|
+
referencedRelation: 'tbl_org';
|
|
341
|
+
referencedColumns: ['org_id'];
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
foreignKeyName:
|
|
345
|
-
columns: [
|
|
344
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
345
|
+
columns: ['org_id'];
|
|
346
346
|
isOneToOne: false;
|
|
347
|
-
referencedRelation:
|
|
348
|
-
referencedColumns: [
|
|
347
|
+
referencedRelation: 'view_org';
|
|
348
|
+
referencedColumns: ['org_id'];
|
|
349
349
|
}
|
|
350
350
|
];
|
|
351
351
|
};
|
|
@@ -379,18 +379,18 @@ export type Database = {
|
|
|
379
379
|
};
|
|
380
380
|
Relationships: [
|
|
381
381
|
{
|
|
382
|
-
foreignKeyName:
|
|
383
|
-
columns: [
|
|
382
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
383
|
+
columns: ['org_id'];
|
|
384
384
|
isOneToOne: false;
|
|
385
|
-
referencedRelation:
|
|
386
|
-
referencedColumns: [
|
|
385
|
+
referencedRelation: 'tbl_org';
|
|
386
|
+
referencedColumns: ['org_id'];
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
|
-
foreignKeyName:
|
|
390
|
-
columns: [
|
|
389
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
390
|
+
columns: ['org_id'];
|
|
391
391
|
isOneToOne: false;
|
|
392
|
-
referencedRelation:
|
|
393
|
-
referencedColumns: [
|
|
392
|
+
referencedRelation: 'view_org';
|
|
393
|
+
referencedColumns: ['org_id'];
|
|
394
394
|
}
|
|
395
395
|
];
|
|
396
396
|
};
|
|
@@ -436,18 +436,18 @@ export type Database = {
|
|
|
436
436
|
};
|
|
437
437
|
Relationships: [
|
|
438
438
|
{
|
|
439
|
-
foreignKeyName:
|
|
440
|
-
columns: [
|
|
439
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
440
|
+
columns: ['org_id'];
|
|
441
441
|
isOneToOne: false;
|
|
442
|
-
referencedRelation:
|
|
443
|
-
referencedColumns: [
|
|
442
|
+
referencedRelation: 'tbl_org';
|
|
443
|
+
referencedColumns: ['org_id'];
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
|
-
foreignKeyName:
|
|
447
|
-
columns: [
|
|
446
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
447
|
+
columns: ['org_id'];
|
|
448
448
|
isOneToOne: false;
|
|
449
|
-
referencedRelation:
|
|
450
|
-
referencedColumns: [
|
|
449
|
+
referencedRelation: 'view_org';
|
|
450
|
+
referencedColumns: ['org_id'];
|
|
451
451
|
}
|
|
452
452
|
];
|
|
453
453
|
};
|
|
@@ -804,7 +804,7 @@ export type Database = {
|
|
|
804
804
|
quoted_message_id: string | null;
|
|
805
805
|
raised_by: string | null;
|
|
806
806
|
response_time: number | null;
|
|
807
|
-
status: Database[
|
|
807
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
808
808
|
subject: string;
|
|
809
809
|
ticket_id: string;
|
|
810
810
|
zohodesk_metadata: Json | null;
|
|
@@ -828,7 +828,7 @@ export type Database = {
|
|
|
828
828
|
quoted_message_id?: string | null;
|
|
829
829
|
raised_by?: string | null;
|
|
830
830
|
response_time?: number | null;
|
|
831
|
-
status?: Database[
|
|
831
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
832
832
|
subject: string;
|
|
833
833
|
ticket_id?: string;
|
|
834
834
|
zohodesk_metadata?: Json | null;
|
|
@@ -852,25 +852,25 @@ export type Database = {
|
|
|
852
852
|
quoted_message_id?: string | null;
|
|
853
853
|
raised_by?: string | null;
|
|
854
854
|
response_time?: number | null;
|
|
855
|
-
status?: Database[
|
|
855
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
856
856
|
subject?: string;
|
|
857
857
|
ticket_id?: string;
|
|
858
858
|
zohodesk_metadata?: Json | null;
|
|
859
859
|
};
|
|
860
860
|
Relationships: [
|
|
861
861
|
{
|
|
862
|
-
foreignKeyName:
|
|
863
|
-
columns: [
|
|
862
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
863
|
+
columns: ['org_id'];
|
|
864
864
|
isOneToOne: false;
|
|
865
|
-
referencedRelation:
|
|
866
|
-
referencedColumns: [
|
|
865
|
+
referencedRelation: 'tbl_org';
|
|
866
|
+
referencedColumns: ['org_id'];
|
|
867
867
|
},
|
|
868
868
|
{
|
|
869
|
-
foreignKeyName:
|
|
870
|
-
columns: [
|
|
869
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
870
|
+
columns: ['org_id'];
|
|
871
871
|
isOneToOne: false;
|
|
872
|
-
referencedRelation:
|
|
873
|
-
referencedColumns: [
|
|
872
|
+
referencedRelation: 'view_org';
|
|
873
|
+
referencedColumns: ['org_id'];
|
|
874
874
|
}
|
|
875
875
|
];
|
|
876
876
|
};
|
|
@@ -955,7 +955,7 @@ export type Database = {
|
|
|
955
955
|
tbl_contacts: {
|
|
956
956
|
Row: {
|
|
957
957
|
business_profile: Json | null;
|
|
958
|
-
contact_color: Database[
|
|
958
|
+
contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
959
959
|
contact_id: string;
|
|
960
960
|
contact_image: string | null;
|
|
961
961
|
contact_name: string | null;
|
|
@@ -984,7 +984,7 @@ export type Database = {
|
|
|
984
984
|
};
|
|
985
985
|
Insert: {
|
|
986
986
|
business_profile?: Json | null;
|
|
987
|
-
contact_color?: Database[
|
|
987
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
988
988
|
contact_id: string;
|
|
989
989
|
contact_image?: string | null;
|
|
990
990
|
contact_name?: string | null;
|
|
@@ -1013,7 +1013,7 @@ export type Database = {
|
|
|
1013
1013
|
};
|
|
1014
1014
|
Update: {
|
|
1015
1015
|
business_profile?: Json | null;
|
|
1016
|
-
contact_color?: Database[
|
|
1016
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1017
1017
|
contact_id?: string;
|
|
1018
1018
|
contact_image?: string | null;
|
|
1019
1019
|
contact_name?: string | null;
|
|
@@ -1042,18 +1042,18 @@ export type Database = {
|
|
|
1042
1042
|
};
|
|
1043
1043
|
Relationships: [
|
|
1044
1044
|
{
|
|
1045
|
-
foreignKeyName:
|
|
1046
|
-
columns: [
|
|
1045
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1046
|
+
columns: ['org_id'];
|
|
1047
1047
|
isOneToOne: false;
|
|
1048
|
-
referencedRelation:
|
|
1049
|
-
referencedColumns: [
|
|
1048
|
+
referencedRelation: 'tbl_org';
|
|
1049
|
+
referencedColumns: ['org_id'];
|
|
1050
1050
|
},
|
|
1051
1051
|
{
|
|
1052
|
-
foreignKeyName:
|
|
1053
|
-
columns: [
|
|
1052
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1053
|
+
columns: ['org_id'];
|
|
1054
1054
|
isOneToOne: false;
|
|
1055
|
-
referencedRelation:
|
|
1056
|
-
referencedColumns: [
|
|
1055
|
+
referencedRelation: 'view_org';
|
|
1056
|
+
referencedColumns: ['org_id'];
|
|
1057
1057
|
}
|
|
1058
1058
|
];
|
|
1059
1059
|
};
|
|
@@ -1090,18 +1090,18 @@ export type Database = {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
Relationships: [
|
|
1092
1092
|
{
|
|
1093
|
-
foreignKeyName:
|
|
1094
|
-
columns: [
|
|
1093
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1094
|
+
columns: ['org_id'];
|
|
1095
1095
|
isOneToOne: false;
|
|
1096
|
-
referencedRelation:
|
|
1097
|
-
referencedColumns: [
|
|
1096
|
+
referencedRelation: 'tbl_org';
|
|
1097
|
+
referencedColumns: ['org_id'];
|
|
1098
1098
|
},
|
|
1099
1099
|
{
|
|
1100
|
-
foreignKeyName:
|
|
1101
|
-
columns: [
|
|
1100
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1101
|
+
columns: ['org_id'];
|
|
1102
1102
|
isOneToOne: false;
|
|
1103
|
-
referencedRelation:
|
|
1104
|
-
referencedColumns: [
|
|
1103
|
+
referencedRelation: 'view_org';
|
|
1104
|
+
referencedColumns: ['org_id'];
|
|
1105
1105
|
}
|
|
1106
1106
|
];
|
|
1107
1107
|
};
|
|
@@ -1111,51 +1111,51 @@ export type Database = {
|
|
|
1111
1111
|
id: string;
|
|
1112
1112
|
integration_id: string | null;
|
|
1113
1113
|
integration_metadata: Json;
|
|
1114
|
-
integration_name: Database[
|
|
1114
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1115
1115
|
integration_type: string;
|
|
1116
1116
|
is_subscribed: boolean;
|
|
1117
1117
|
org_id: string;
|
|
1118
1118
|
subscribed_at: string;
|
|
1119
|
-
type: Database[
|
|
1119
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1120
1120
|
};
|
|
1121
1121
|
Insert: {
|
|
1122
1122
|
hook_url: string;
|
|
1123
1123
|
id?: string;
|
|
1124
1124
|
integration_id?: string | null;
|
|
1125
1125
|
integration_metadata: Json;
|
|
1126
|
-
integration_name: Database[
|
|
1126
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1127
1127
|
integration_type: string;
|
|
1128
1128
|
is_subscribed: boolean;
|
|
1129
1129
|
org_id: string;
|
|
1130
1130
|
subscribed_at?: string;
|
|
1131
|
-
type: Database[
|
|
1131
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1132
1132
|
};
|
|
1133
1133
|
Update: {
|
|
1134
1134
|
hook_url?: string;
|
|
1135
1135
|
id?: string;
|
|
1136
1136
|
integration_id?: string | null;
|
|
1137
1137
|
integration_metadata?: Json;
|
|
1138
|
-
integration_name?: Database[
|
|
1138
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1139
1139
|
integration_type?: string;
|
|
1140
1140
|
is_subscribed?: boolean;
|
|
1141
1141
|
org_id?: string;
|
|
1142
1142
|
subscribed_at?: string;
|
|
1143
|
-
type?: Database[
|
|
1143
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1144
1144
|
};
|
|
1145
1145
|
Relationships: [
|
|
1146
1146
|
{
|
|
1147
|
-
foreignKeyName:
|
|
1148
|
-
columns: [
|
|
1147
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1148
|
+
columns: ['org_id'];
|
|
1149
1149
|
isOneToOne: false;
|
|
1150
|
-
referencedRelation:
|
|
1151
|
-
referencedColumns: [
|
|
1150
|
+
referencedRelation: 'tbl_org';
|
|
1151
|
+
referencedColumns: ['org_id'];
|
|
1152
1152
|
},
|
|
1153
1153
|
{
|
|
1154
|
-
foreignKeyName:
|
|
1155
|
-
columns: [
|
|
1154
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1155
|
+
columns: ['org_id'];
|
|
1156
1156
|
isOneToOne: false;
|
|
1157
|
-
referencedRelation:
|
|
1158
|
-
referencedColumns: [
|
|
1157
|
+
referencedRelation: 'view_org';
|
|
1158
|
+
referencedColumns: ['org_id'];
|
|
1159
1159
|
}
|
|
1160
1160
|
];
|
|
1161
1161
|
};
|
|
@@ -1163,50 +1163,50 @@ export type Database = {
|
|
|
1163
1163
|
Row: {
|
|
1164
1164
|
created_at: string;
|
|
1165
1165
|
id: string;
|
|
1166
|
-
integration_name: Database[
|
|
1166
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1167
1167
|
integration_type: string;
|
|
1168
1168
|
metadata: Json;
|
|
1169
1169
|
org_id: string;
|
|
1170
1170
|
response: Json | null;
|
|
1171
1171
|
success: boolean;
|
|
1172
|
-
type: Database[
|
|
1172
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1173
1173
|
};
|
|
1174
1174
|
Insert: {
|
|
1175
1175
|
created_at?: string;
|
|
1176
1176
|
id?: string;
|
|
1177
|
-
integration_name: Database[
|
|
1177
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1178
1178
|
integration_type: string;
|
|
1179
1179
|
metadata?: Json;
|
|
1180
1180
|
org_id: string;
|
|
1181
1181
|
response?: Json | null;
|
|
1182
1182
|
success?: boolean;
|
|
1183
|
-
type: Database[
|
|
1183
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1184
1184
|
};
|
|
1185
1185
|
Update: {
|
|
1186
1186
|
created_at?: string;
|
|
1187
1187
|
id?: string;
|
|
1188
|
-
integration_name?: Database[
|
|
1188
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1189
1189
|
integration_type?: string;
|
|
1190
1190
|
metadata?: Json;
|
|
1191
1191
|
org_id?: string;
|
|
1192
1192
|
response?: Json | null;
|
|
1193
1193
|
success?: boolean;
|
|
1194
|
-
type?: Database[
|
|
1194
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1195
1195
|
};
|
|
1196
1196
|
Relationships: [
|
|
1197
1197
|
{
|
|
1198
|
-
foreignKeyName:
|
|
1199
|
-
columns: [
|
|
1198
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1199
|
+
columns: ['org_id'];
|
|
1200
1200
|
isOneToOne: false;
|
|
1201
|
-
referencedRelation:
|
|
1202
|
-
referencedColumns: [
|
|
1201
|
+
referencedRelation: 'tbl_org';
|
|
1202
|
+
referencedColumns: ['org_id'];
|
|
1203
1203
|
},
|
|
1204
1204
|
{
|
|
1205
|
-
foreignKeyName:
|
|
1206
|
-
columns: [
|
|
1205
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1206
|
+
columns: ['org_id'];
|
|
1207
1207
|
isOneToOne: false;
|
|
1208
|
-
referencedRelation:
|
|
1209
|
-
referencedColumns: [
|
|
1208
|
+
referencedRelation: 'view_org';
|
|
1209
|
+
referencedColumns: ['org_id'];
|
|
1210
1210
|
}
|
|
1211
1211
|
];
|
|
1212
1212
|
};
|
|
@@ -1221,7 +1221,7 @@ export type Database = {
|
|
|
1221
1221
|
role: string;
|
|
1222
1222
|
token: string;
|
|
1223
1223
|
token_metadata: Json | null;
|
|
1224
|
-
type: Database[
|
|
1224
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1225
1225
|
};
|
|
1226
1226
|
Insert: {
|
|
1227
1227
|
exp: string;
|
|
@@ -1233,7 +1233,7 @@ export type Database = {
|
|
|
1233
1233
|
role: string;
|
|
1234
1234
|
token: string;
|
|
1235
1235
|
token_metadata?: Json | null;
|
|
1236
|
-
type: Database[
|
|
1236
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1237
1237
|
};
|
|
1238
1238
|
Update: {
|
|
1239
1239
|
exp?: string;
|
|
@@ -1245,22 +1245,22 @@ export type Database = {
|
|
|
1245
1245
|
role?: string;
|
|
1246
1246
|
token?: string;
|
|
1247
1247
|
token_metadata?: Json | null;
|
|
1248
|
-
type?: Database[
|
|
1248
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1249
1249
|
};
|
|
1250
1250
|
Relationships: [
|
|
1251
1251
|
{
|
|
1252
|
-
foreignKeyName:
|
|
1253
|
-
columns: [
|
|
1252
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1253
|
+
columns: ['org_id'];
|
|
1254
1254
|
isOneToOne: false;
|
|
1255
|
-
referencedRelation:
|
|
1256
|
-
referencedColumns: [
|
|
1255
|
+
referencedRelation: 'tbl_org';
|
|
1256
|
+
referencedColumns: ['org_id'];
|
|
1257
1257
|
},
|
|
1258
1258
|
{
|
|
1259
|
-
foreignKeyName:
|
|
1260
|
-
columns: [
|
|
1259
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1260
|
+
columns: ['org_id'];
|
|
1261
1261
|
isOneToOne: false;
|
|
1262
|
-
referencedRelation:
|
|
1263
|
-
referencedColumns: [
|
|
1262
|
+
referencedRelation: 'view_org';
|
|
1263
|
+
referencedColumns: ['org_id'];
|
|
1264
1264
|
}
|
|
1265
1265
|
];
|
|
1266
1266
|
};
|
|
@@ -1330,18 +1330,18 @@ export type Database = {
|
|
|
1330
1330
|
};
|
|
1331
1331
|
Relationships: [
|
|
1332
1332
|
{
|
|
1333
|
-
foreignKeyName:
|
|
1334
|
-
columns: [
|
|
1333
|
+
foreignKeyName: 'tbl_org_labels_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_org_labels_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
|
};
|
|
@@ -1354,13 +1354,13 @@ export type Database = {
|
|
|
1354
1354
|
is_active: boolean;
|
|
1355
1355
|
is_owner: boolean | null;
|
|
1356
1356
|
label_ids: string[] | null;
|
|
1357
|
-
member_color: Database[
|
|
1357
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1358
1358
|
member_image: string | null;
|
|
1359
1359
|
member_name: string | null;
|
|
1360
1360
|
org_id: string;
|
|
1361
1361
|
org_phones: string[] | null;
|
|
1362
1362
|
preferences: Json;
|
|
1363
|
-
role: Database[
|
|
1363
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1364
1364
|
user_id: string | null;
|
|
1365
1365
|
};
|
|
1366
1366
|
Insert: {
|
|
@@ -1371,13 +1371,13 @@ export type Database = {
|
|
|
1371
1371
|
is_active?: boolean;
|
|
1372
1372
|
is_owner?: boolean | null;
|
|
1373
1373
|
label_ids?: string[] | null;
|
|
1374
|
-
member_color?: Database[
|
|
1374
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1375
1375
|
member_image?: string | null;
|
|
1376
1376
|
member_name?: string | null;
|
|
1377
1377
|
org_id: string;
|
|
1378
1378
|
org_phones?: string[] | null;
|
|
1379
1379
|
preferences?: Json;
|
|
1380
|
-
role?: Database[
|
|
1380
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1381
1381
|
user_id?: string | null;
|
|
1382
1382
|
};
|
|
1383
1383
|
Update: {
|
|
@@ -1388,36 +1388,36 @@ export type Database = {
|
|
|
1388
1388
|
is_active?: boolean;
|
|
1389
1389
|
is_owner?: boolean | null;
|
|
1390
1390
|
label_ids?: string[] | null;
|
|
1391
|
-
member_color?: Database[
|
|
1391
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1392
1392
|
member_image?: string | null;
|
|
1393
1393
|
member_name?: string | null;
|
|
1394
1394
|
org_id?: string;
|
|
1395
1395
|
org_phones?: string[] | null;
|
|
1396
1396
|
preferences?: Json;
|
|
1397
|
-
role?: Database[
|
|
1397
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1398
1398
|
user_id?: string | null;
|
|
1399
1399
|
};
|
|
1400
1400
|
Relationships: [
|
|
1401
1401
|
{
|
|
1402
|
-
foreignKeyName:
|
|
1403
|
-
columns: [
|
|
1402
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1403
|
+
columns: ['user_id'];
|
|
1404
1404
|
isOneToOne: false;
|
|
1405
|
-
referencedRelation:
|
|
1406
|
-
referencedColumns: [
|
|
1405
|
+
referencedRelation: 'users';
|
|
1406
|
+
referencedColumns: ['id'];
|
|
1407
1407
|
},
|
|
1408
1408
|
{
|
|
1409
|
-
foreignKeyName:
|
|
1410
|
-
columns: [
|
|
1409
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1410
|
+
columns: ['org_id'];
|
|
1411
1411
|
isOneToOne: false;
|
|
1412
|
-
referencedRelation:
|
|
1413
|
-
referencedColumns: [
|
|
1412
|
+
referencedRelation: 'tbl_org';
|
|
1413
|
+
referencedColumns: ['org_id'];
|
|
1414
1414
|
},
|
|
1415
1415
|
{
|
|
1416
|
-
foreignKeyName:
|
|
1417
|
-
columns: [
|
|
1416
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1417
|
+
columns: ['org_id'];
|
|
1418
1418
|
isOneToOne: false;
|
|
1419
|
-
referencedRelation:
|
|
1420
|
-
referencedColumns: [
|
|
1419
|
+
referencedRelation: 'view_org';
|
|
1420
|
+
referencedColumns: ['org_id'];
|
|
1421
1421
|
}
|
|
1422
1422
|
];
|
|
1423
1423
|
};
|
|
@@ -1487,32 +1487,32 @@ export type Database = {
|
|
|
1487
1487
|
};
|
|
1488
1488
|
Relationships: [
|
|
1489
1489
|
{
|
|
1490
|
-
foreignKeyName:
|
|
1491
|
-
columns: [
|
|
1490
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1491
|
+
columns: ['org_id'];
|
|
1492
1492
|
isOneToOne: false;
|
|
1493
|
-
referencedRelation:
|
|
1494
|
-
referencedColumns: [
|
|
1493
|
+
referencedRelation: 'tbl_org';
|
|
1494
|
+
referencedColumns: ['org_id'];
|
|
1495
1495
|
},
|
|
1496
1496
|
{
|
|
1497
|
-
foreignKeyName:
|
|
1498
|
-
columns: [
|
|
1497
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1498
|
+
columns: ['org_id'];
|
|
1499
1499
|
isOneToOne: false;
|
|
1500
|
-
referencedRelation:
|
|
1501
|
-
referencedColumns: [
|
|
1500
|
+
referencedRelation: 'view_org';
|
|
1501
|
+
referencedColumns: ['org_id'];
|
|
1502
1502
|
},
|
|
1503
1503
|
{
|
|
1504
|
-
foreignKeyName:
|
|
1505
|
-
columns: [
|
|
1504
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1505
|
+
columns: ['org_id'];
|
|
1506
1506
|
isOneToOne: false;
|
|
1507
|
-
referencedRelation:
|
|
1508
|
-
referencedColumns: [
|
|
1507
|
+
referencedRelation: 'tbl_org';
|
|
1508
|
+
referencedColumns: ['org_id'];
|
|
1509
1509
|
},
|
|
1510
1510
|
{
|
|
1511
|
-
foreignKeyName:
|
|
1512
|
-
columns: [
|
|
1511
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1512
|
+
columns: ['org_id'];
|
|
1513
1513
|
isOneToOne: false;
|
|
1514
|
-
referencedRelation:
|
|
1515
|
-
referencedColumns: [
|
|
1514
|
+
referencedRelation: 'view_org';
|
|
1515
|
+
referencedColumns: ['org_id'];
|
|
1516
1516
|
}
|
|
1517
1517
|
];
|
|
1518
1518
|
};
|
|
@@ -1524,7 +1524,7 @@ export type Database = {
|
|
|
1524
1524
|
timestamp: string | null;
|
|
1525
1525
|
transaction_id: string;
|
|
1526
1526
|
transaction_metadata: Json | null;
|
|
1527
|
-
transaction_type: Database[
|
|
1527
|
+
transaction_type: Database['public']['Enums']['enum_credit_transaction_type'];
|
|
1528
1528
|
usage_metadata: Json | null;
|
|
1529
1529
|
};
|
|
1530
1530
|
Insert: {
|
|
@@ -1534,7 +1534,7 @@ export type Database = {
|
|
|
1534
1534
|
timestamp?: string | null;
|
|
1535
1535
|
transaction_id?: string;
|
|
1536
1536
|
transaction_metadata?: Json | null;
|
|
1537
|
-
transaction_type: Database[
|
|
1537
|
+
transaction_type: Database['public']['Enums']['enum_credit_transaction_type'];
|
|
1538
1538
|
usage_metadata?: Json | null;
|
|
1539
1539
|
};
|
|
1540
1540
|
Update: {
|
|
@@ -1544,7 +1544,7 @@ export type Database = {
|
|
|
1544
1544
|
timestamp?: string | null;
|
|
1545
1545
|
transaction_id?: string;
|
|
1546
1546
|
transaction_metadata?: Json | null;
|
|
1547
|
-
transaction_type?: Database[
|
|
1547
|
+
transaction_type?: Database['public']['Enums']['enum_credit_transaction_type'];
|
|
1548
1548
|
usage_metadata?: Json | null;
|
|
1549
1549
|
};
|
|
1550
1550
|
Relationships: [];
|
|
@@ -1573,18 +1573,18 @@ export type Database = {
|
|
|
1573
1573
|
};
|
|
1574
1574
|
Relationships: [
|
|
1575
1575
|
{
|
|
1576
|
-
foreignKeyName:
|
|
1577
|
-
columns: [
|
|
1576
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1577
|
+
columns: ['org_id'];
|
|
1578
1578
|
isOneToOne: false;
|
|
1579
|
-
referencedRelation:
|
|
1580
|
-
referencedColumns: [
|
|
1579
|
+
referencedRelation: 'tbl_org';
|
|
1580
|
+
referencedColumns: ['org_id'];
|
|
1581
1581
|
},
|
|
1582
1582
|
{
|
|
1583
|
-
foreignKeyName:
|
|
1584
|
-
columns: [
|
|
1583
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1584
|
+
columns: ['org_id'];
|
|
1585
1585
|
isOneToOne: false;
|
|
1586
|
-
referencedRelation:
|
|
1587
|
-
referencedColumns: [
|
|
1586
|
+
referencedRelation: 'view_org';
|
|
1587
|
+
referencedColumns: ['org_id'];
|
|
1588
1588
|
}
|
|
1589
1589
|
];
|
|
1590
1590
|
};
|
|
@@ -1630,18 +1630,18 @@ export type Database = {
|
|
|
1630
1630
|
};
|
|
1631
1631
|
Relationships: [
|
|
1632
1632
|
{
|
|
1633
|
-
foreignKeyName:
|
|
1634
|
-
columns: [
|
|
1633
|
+
foreignKeyName: 'tbl_scheduled_messages_org_id_fkey';
|
|
1634
|
+
columns: ['org_id'];
|
|
1635
1635
|
isOneToOne: false;
|
|
1636
|
-
referencedRelation:
|
|
1637
|
-
referencedColumns: [
|
|
1636
|
+
referencedRelation: 'tbl_org';
|
|
1637
|
+
referencedColumns: ['org_id'];
|
|
1638
1638
|
},
|
|
1639
1639
|
{
|
|
1640
|
-
foreignKeyName:
|
|
1641
|
-
columns: [
|
|
1640
|
+
foreignKeyName: 'tbl_scheduled_messages_org_id_fkey';
|
|
1641
|
+
columns: ['org_id'];
|
|
1642
1642
|
isOneToOne: false;
|
|
1643
|
-
referencedRelation:
|
|
1644
|
-
referencedColumns: [
|
|
1643
|
+
referencedRelation: 'view_org';
|
|
1644
|
+
referencedColumns: ['org_id'];
|
|
1645
1645
|
}
|
|
1646
1646
|
];
|
|
1647
1647
|
};
|
|
@@ -1674,7 +1674,7 @@ export type Database = {
|
|
|
1674
1674
|
view_broadcast_logs: {
|
|
1675
1675
|
Row: {
|
|
1676
1676
|
broadcast_id: string | null;
|
|
1677
|
-
broadcast_status: Database[
|
|
1677
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
1678
1678
|
created_at: string | null;
|
|
1679
1679
|
delivered_percentage: number | null;
|
|
1680
1680
|
failed_chats: number | null;
|
|
@@ -1693,18 +1693,18 @@ export type Database = {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
Relationships: [
|
|
1695
1695
|
{
|
|
1696
|
-
foreignKeyName:
|
|
1697
|
-
columns: [
|
|
1696
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1697
|
+
columns: ['org_id'];
|
|
1698
1698
|
isOneToOne: false;
|
|
1699
|
-
referencedRelation:
|
|
1700
|
-
referencedColumns: [
|
|
1699
|
+
referencedRelation: 'tbl_org';
|
|
1700
|
+
referencedColumns: ['org_id'];
|
|
1701
1701
|
},
|
|
1702
1702
|
{
|
|
1703
|
-
foreignKeyName:
|
|
1704
|
-
columns: [
|
|
1703
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1704
|
+
columns: ['org_id'];
|
|
1705
1705
|
isOneToOne: false;
|
|
1706
|
-
referencedRelation:
|
|
1707
|
-
referencedColumns: [
|
|
1706
|
+
referencedRelation: 'view_org';
|
|
1707
|
+
referencedColumns: ['org_id'];
|
|
1708
1708
|
}
|
|
1709
1709
|
];
|
|
1710
1710
|
};
|
|
@@ -1724,18 +1724,18 @@ export type Database = {
|
|
|
1724
1724
|
};
|
|
1725
1725
|
Relationships: [
|
|
1726
1726
|
{
|
|
1727
|
-
foreignKeyName:
|
|
1728
|
-
columns: [
|
|
1727
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
1728
|
+
columns: ['org_id'];
|
|
1729
1729
|
isOneToOne: false;
|
|
1730
|
-
referencedRelation:
|
|
1731
|
-
referencedColumns: [
|
|
1730
|
+
referencedRelation: 'tbl_org';
|
|
1731
|
+
referencedColumns: ['org_id'];
|
|
1732
1732
|
},
|
|
1733
1733
|
{
|
|
1734
|
-
foreignKeyName:
|
|
1735
|
-
columns: [
|
|
1734
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
1735
|
+
columns: ['org_id'];
|
|
1736
1736
|
isOneToOne: false;
|
|
1737
|
-
referencedRelation:
|
|
1738
|
-
referencedColumns: [
|
|
1737
|
+
referencedRelation: 'view_org';
|
|
1738
|
+
referencedColumns: ['org_id'];
|
|
1739
1739
|
}
|
|
1740
1740
|
];
|
|
1741
1741
|
};
|
|
@@ -1881,7 +1881,7 @@ export type Database = {
|
|
|
1881
1881
|
generate_access_token: {
|
|
1882
1882
|
Args: {
|
|
1883
1883
|
name_input?: string;
|
|
1884
|
-
type_input?: Database[
|
|
1884
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1885
1885
|
org_id_input?: string;
|
|
1886
1886
|
};
|
|
1887
1887
|
Returns: Json;
|
|
@@ -1891,7 +1891,7 @@ export type Database = {
|
|
|
1891
1891
|
org_id_input?: string;
|
|
1892
1892
|
org_phone_input?: string;
|
|
1893
1893
|
token_id_input?: string;
|
|
1894
|
-
token_type_input?: Database[
|
|
1894
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1895
1895
|
};
|
|
1896
1896
|
Returns: Json;
|
|
1897
1897
|
};
|
|
@@ -1902,6 +1902,14 @@ export type Database = {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
Returns: Json[];
|
|
1904
1904
|
};
|
|
1905
|
+
get_chat_rule_info: {
|
|
1906
|
+
Args: {
|
|
1907
|
+
chat_id_input: string;
|
|
1908
|
+
org_id_input: string;
|
|
1909
|
+
org_phone_input: string;
|
|
1910
|
+
};
|
|
1911
|
+
Returns: Json;
|
|
1912
|
+
};
|
|
1905
1913
|
get_chats: {
|
|
1906
1914
|
Args: {
|
|
1907
1915
|
org_id_input: string;
|
|
@@ -1954,6 +1962,16 @@ export type Database = {
|
|
|
1954
1962
|
};
|
|
1955
1963
|
Returns: Json;
|
|
1956
1964
|
};
|
|
1965
|
+
get_message_rule_info: {
|
|
1966
|
+
Args: {
|
|
1967
|
+
message_id_input: string;
|
|
1968
|
+
chat_id_input: string;
|
|
1969
|
+
org_id_input: string;
|
|
1970
|
+
org_phone_input: string;
|
|
1971
|
+
sender_id_input: string;
|
|
1972
|
+
};
|
|
1973
|
+
Returns: Json;
|
|
1974
|
+
};
|
|
1957
1975
|
get_messages_notifications_reactions: {
|
|
1958
1976
|
Args: {
|
|
1959
1977
|
org_id_input: string;
|
|
@@ -1982,6 +2000,17 @@ export type Database = {
|
|
|
1982
2000
|
};
|
|
1983
2001
|
Returns: Json;
|
|
1984
2002
|
};
|
|
2003
|
+
get_reaction_rule_info: {
|
|
2004
|
+
Args: {
|
|
2005
|
+
reaction_id_input: string;
|
|
2006
|
+
message_id_input: string;
|
|
2007
|
+
chat_id_input: string;
|
|
2008
|
+
org_id_input: string;
|
|
2009
|
+
org_phone_input: string;
|
|
2010
|
+
sender_id_input: string;
|
|
2011
|
+
};
|
|
2012
|
+
Returns: Json;
|
|
2013
|
+
};
|
|
1985
2014
|
get_team_metrics_between_dates: {
|
|
1986
2015
|
Args: {
|
|
1987
2016
|
org_id_input: string;
|
|
@@ -2000,6 +2029,15 @@ export type Database = {
|
|
|
2000
2029
|
};
|
|
2001
2030
|
Returns: Json;
|
|
2002
2031
|
};
|
|
2032
|
+
get_ticket_rule_info: {
|
|
2033
|
+
Args: {
|
|
2034
|
+
ticket_id_input: string;
|
|
2035
|
+
unique_message_id_input: string;
|
|
2036
|
+
chat_id_input: string;
|
|
2037
|
+
org_id_input: string;
|
|
2038
|
+
};
|
|
2039
|
+
Returns: Json;
|
|
2040
|
+
};
|
|
2003
2041
|
get_universal_search_result: {
|
|
2004
2042
|
Args: {
|
|
2005
2043
|
search_category_input: string;
|
|
@@ -2025,7 +2063,7 @@ export type Database = {
|
|
|
2025
2063
|
};
|
|
2026
2064
|
list_role_from_user: {
|
|
2027
2065
|
Args: Record<PropertyKey, never>;
|
|
2028
|
-
Returns: Database[
|
|
2066
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
2029
2067
|
};
|
|
2030
2068
|
update_chat_properties: {
|
|
2031
2069
|
Args: {
|
|
@@ -2056,13 +2094,13 @@ export type Database = {
|
|
|
2056
2094
|
};
|
|
2057
2095
|
};
|
|
2058
2096
|
Enums: {
|
|
2059
|
-
enum_broadcast_status:
|
|
2060
|
-
enum_chat_colors:
|
|
2061
|
-
enum_chat_tickets_status:
|
|
2062
|
-
enum_credit_transaction_type:
|
|
2063
|
-
enum_integration_name:
|
|
2064
|
-
enum_integration_type:
|
|
2065
|
-
enum_member_role:
|
|
2097
|
+
enum_broadcast_status: 'inprogress' | 'completed' | 'stopped' | 'expired';
|
|
2098
|
+
enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
|
|
2099
|
+
enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
|
|
2100
|
+
enum_credit_transaction_type: 'credit' | 'debit';
|
|
2101
|
+
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.integrations.updated';
|
|
2102
|
+
enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce' | 'zohodesk' | 'gsheets';
|
|
2103
|
+
enum_member_role: 'admin' | 'member';
|
|
2066
2104
|
};
|
|
2067
2105
|
CompositeTypes: {
|
|
2068
2106
|
[_ in never]: never;
|
|
@@ -2175,11 +2213,11 @@ export type Database = {
|
|
|
2175
2213
|
};
|
|
2176
2214
|
Relationships: [
|
|
2177
2215
|
{
|
|
2178
|
-
foreignKeyName:
|
|
2179
|
-
columns: [
|
|
2216
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
2217
|
+
columns: ['bucket_id'];
|
|
2180
2218
|
isOneToOne: false;
|
|
2181
|
-
referencedRelation:
|
|
2182
|
-
referencedColumns: [
|
|
2219
|
+
referencedRelation: 'buckets';
|
|
2220
|
+
referencedColumns: ['id'];
|
|
2183
2221
|
}
|
|
2184
2222
|
];
|
|
2185
2223
|
};
|
|
@@ -2219,11 +2257,11 @@ export type Database = {
|
|
|
2219
2257
|
};
|
|
2220
2258
|
Relationships: [
|
|
2221
2259
|
{
|
|
2222
|
-
foreignKeyName:
|
|
2223
|
-
columns: [
|
|
2260
|
+
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
2261
|
+
columns: ['bucket_id'];
|
|
2224
2262
|
isOneToOne: false;
|
|
2225
|
-
referencedRelation:
|
|
2226
|
-
referencedColumns: [
|
|
2263
|
+
referencedRelation: 'buckets';
|
|
2264
|
+
referencedColumns: ['id'];
|
|
2227
2265
|
}
|
|
2228
2266
|
];
|
|
2229
2267
|
};
|
|
@@ -2266,18 +2304,18 @@ export type Database = {
|
|
|
2266
2304
|
};
|
|
2267
2305
|
Relationships: [
|
|
2268
2306
|
{
|
|
2269
|
-
foreignKeyName:
|
|
2270
|
-
columns: [
|
|
2307
|
+
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
2308
|
+
columns: ['bucket_id'];
|
|
2271
2309
|
isOneToOne: false;
|
|
2272
|
-
referencedRelation:
|
|
2273
|
-
referencedColumns: [
|
|
2310
|
+
referencedRelation: 'buckets';
|
|
2311
|
+
referencedColumns: ['id'];
|
|
2274
2312
|
},
|
|
2275
2313
|
{
|
|
2276
|
-
foreignKeyName:
|
|
2277
|
-
columns: [
|
|
2314
|
+
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
2315
|
+
columns: ['upload_id'];
|
|
2278
2316
|
isOneToOne: false;
|
|
2279
|
-
referencedRelation:
|
|
2280
|
-
referencedColumns: [
|
|
2317
|
+
referencedRelation: 's3_multipart_uploads';
|
|
2318
|
+
referencedColumns: ['id'];
|
|
2281
2319
|
}
|
|
2282
2320
|
];
|
|
2283
2321
|
};
|
|
@@ -2384,45 +2422,45 @@ export type Database = {
|
|
|
2384
2422
|
};
|
|
2385
2423
|
};
|
|
2386
2424
|
};
|
|
2387
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2388
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2425
|
+
type PublicSchema = Database[Extract<keyof Database, 'public'>];
|
|
2426
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
|
|
2389
2427
|
schema: keyof Database;
|
|
2390
2428
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2391
2429
|
schema: keyof Database;
|
|
2392
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2430
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
2393
2431
|
schema: keyof Database;
|
|
2394
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2432
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2395
2433
|
Row: infer R;
|
|
2396
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2434
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
2397
2435
|
Row: infer R;
|
|
2398
2436
|
} ? R : never : never;
|
|
2399
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2437
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2400
2438
|
schema: keyof Database;
|
|
2401
2439
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2402
2440
|
schema: keyof Database;
|
|
2403
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2441
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2404
2442
|
schema: keyof Database;
|
|
2405
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2443
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2406
2444
|
Insert: infer I;
|
|
2407
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2445
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2408
2446
|
Insert: infer I;
|
|
2409
2447
|
} ? I : never : never;
|
|
2410
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2448
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2411
2449
|
schema: keyof Database;
|
|
2412
2450
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2413
2451
|
schema: keyof Database;
|
|
2414
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2452
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2415
2453
|
schema: keyof Database;
|
|
2416
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2454
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2417
2455
|
Update: infer U;
|
|
2418
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2456
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2419
2457
|
Update: infer U;
|
|
2420
2458
|
} ? U : never : never;
|
|
2421
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2459
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
2422
2460
|
schema: keyof Database;
|
|
2423
2461
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2424
2462
|
schema: keyof Database;
|
|
2425
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2463
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
2426
2464
|
schema: keyof Database;
|
|
2427
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2465
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
2428
2466
|
export {};
|