@periskope/types 0.6.142 → 0.6.144
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 +317 -236
- package/dist/types.d.ts +73 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +1102 -0
- package/supabase.types.ts +2569 -2484
- package/types.ts +709 -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
|
};
|
|
@@ -229,6 +229,7 @@ export type Database = {
|
|
|
229
229
|
org_id: string;
|
|
230
230
|
org_phone: string | null;
|
|
231
231
|
read_count: number | null;
|
|
232
|
+
remarks: string | null;
|
|
232
233
|
};
|
|
233
234
|
Insert: {
|
|
234
235
|
broadcast_id: string;
|
|
@@ -243,6 +244,7 @@ export type Database = {
|
|
|
243
244
|
org_id: string;
|
|
244
245
|
org_phone?: string | null;
|
|
245
246
|
read_count?: number | null;
|
|
247
|
+
remarks?: string | null;
|
|
246
248
|
};
|
|
247
249
|
Update: {
|
|
248
250
|
broadcast_id?: string;
|
|
@@ -257,42 +259,43 @@ export type Database = {
|
|
|
257
259
|
org_id?: string;
|
|
258
260
|
org_phone?: string | null;
|
|
259
261
|
read_count?: number | null;
|
|
262
|
+
remarks?: string | null;
|
|
260
263
|
};
|
|
261
264
|
Relationships: [
|
|
262
265
|
{
|
|
263
|
-
foreignKeyName:
|
|
264
|
-
columns: [
|
|
266
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
267
|
+
columns: ['broadcast_id'];
|
|
265
268
|
isOneToOne: false;
|
|
266
|
-
referencedRelation:
|
|
267
|
-
referencedColumns: [
|
|
269
|
+
referencedRelation: 'tbl_broadcast_messages';
|
|
270
|
+
referencedColumns: ['broadcast_id'];
|
|
268
271
|
},
|
|
269
272
|
{
|
|
270
|
-
foreignKeyName:
|
|
271
|
-
columns: [
|
|
273
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
274
|
+
columns: ['broadcast_id'];
|
|
272
275
|
isOneToOne: false;
|
|
273
|
-
referencedRelation:
|
|
274
|
-
referencedColumns: [
|
|
276
|
+
referencedRelation: 'view_broadcast_logs';
|
|
277
|
+
referencedColumns: ['broadcast_id'];
|
|
275
278
|
},
|
|
276
279
|
{
|
|
277
|
-
foreignKeyName:
|
|
278
|
-
columns: [
|
|
280
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
281
|
+
columns: ['org_id'];
|
|
279
282
|
isOneToOne: false;
|
|
280
|
-
referencedRelation:
|
|
281
|
-
referencedColumns: [
|
|
283
|
+
referencedRelation: 'tbl_org';
|
|
284
|
+
referencedColumns: ['org_id'];
|
|
282
285
|
},
|
|
283
286
|
{
|
|
284
|
-
foreignKeyName:
|
|
285
|
-
columns: [
|
|
287
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
288
|
+
columns: ['org_id'];
|
|
286
289
|
isOneToOne: false;
|
|
287
|
-
referencedRelation:
|
|
288
|
-
referencedColumns: [
|
|
290
|
+
referencedRelation: 'view_org';
|
|
291
|
+
referencedColumns: ['org_id'];
|
|
289
292
|
}
|
|
290
293
|
];
|
|
291
294
|
};
|
|
292
295
|
tbl_broadcast_messages: {
|
|
293
296
|
Row: {
|
|
294
297
|
broadcast_id: string;
|
|
295
|
-
broadcast_status: Database[
|
|
298
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
296
299
|
chat_ids: string[] | null;
|
|
297
300
|
created_at: string;
|
|
298
301
|
message_payload: Json | null;
|
|
@@ -305,7 +308,7 @@ export type Database = {
|
|
|
305
308
|
};
|
|
306
309
|
Insert: {
|
|
307
310
|
broadcast_id?: string;
|
|
308
|
-
broadcast_status?: Database[
|
|
311
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
309
312
|
chat_ids?: string[] | null;
|
|
310
313
|
created_at?: string;
|
|
311
314
|
message_payload?: Json | null;
|
|
@@ -318,7 +321,7 @@ export type Database = {
|
|
|
318
321
|
};
|
|
319
322
|
Update: {
|
|
320
323
|
broadcast_id?: string;
|
|
321
|
-
broadcast_status?: Database[
|
|
324
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
322
325
|
chat_ids?: string[] | null;
|
|
323
326
|
created_at?: string;
|
|
324
327
|
message_payload?: Json | null;
|
|
@@ -331,18 +334,18 @@ export type Database = {
|
|
|
331
334
|
};
|
|
332
335
|
Relationships: [
|
|
333
336
|
{
|
|
334
|
-
foreignKeyName:
|
|
335
|
-
columns: [
|
|
337
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
338
|
+
columns: ['org_id'];
|
|
336
339
|
isOneToOne: false;
|
|
337
|
-
referencedRelation:
|
|
338
|
-
referencedColumns: [
|
|
340
|
+
referencedRelation: 'tbl_org';
|
|
341
|
+
referencedColumns: ['org_id'];
|
|
339
342
|
},
|
|
340
343
|
{
|
|
341
|
-
foreignKeyName:
|
|
342
|
-
columns: [
|
|
344
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
345
|
+
columns: ['org_id'];
|
|
343
346
|
isOneToOne: false;
|
|
344
|
-
referencedRelation:
|
|
345
|
-
referencedColumns: [
|
|
347
|
+
referencedRelation: 'view_org';
|
|
348
|
+
referencedColumns: ['org_id'];
|
|
346
349
|
}
|
|
347
350
|
];
|
|
348
351
|
};
|
|
@@ -376,18 +379,18 @@ export type Database = {
|
|
|
376
379
|
};
|
|
377
380
|
Relationships: [
|
|
378
381
|
{
|
|
379
|
-
foreignKeyName:
|
|
380
|
-
columns: [
|
|
382
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
383
|
+
columns: ['org_id'];
|
|
381
384
|
isOneToOne: false;
|
|
382
|
-
referencedRelation:
|
|
383
|
-
referencedColumns: [
|
|
385
|
+
referencedRelation: 'tbl_org';
|
|
386
|
+
referencedColumns: ['org_id'];
|
|
384
387
|
},
|
|
385
388
|
{
|
|
386
|
-
foreignKeyName:
|
|
387
|
-
columns: [
|
|
389
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
390
|
+
columns: ['org_id'];
|
|
388
391
|
isOneToOne: false;
|
|
389
|
-
referencedRelation:
|
|
390
|
-
referencedColumns: [
|
|
392
|
+
referencedRelation: 'view_org';
|
|
393
|
+
referencedColumns: ['org_id'];
|
|
391
394
|
}
|
|
392
395
|
];
|
|
393
396
|
};
|
|
@@ -433,18 +436,18 @@ export type Database = {
|
|
|
433
436
|
};
|
|
434
437
|
Relationships: [
|
|
435
438
|
{
|
|
436
|
-
foreignKeyName:
|
|
437
|
-
columns: [
|
|
439
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
440
|
+
columns: ['org_id'];
|
|
438
441
|
isOneToOne: false;
|
|
439
|
-
referencedRelation:
|
|
440
|
-
referencedColumns: [
|
|
442
|
+
referencedRelation: 'tbl_org';
|
|
443
|
+
referencedColumns: ['org_id'];
|
|
441
444
|
},
|
|
442
445
|
{
|
|
443
|
-
foreignKeyName:
|
|
444
|
-
columns: [
|
|
446
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
447
|
+
columns: ['org_id'];
|
|
445
448
|
isOneToOne: false;
|
|
446
|
-
referencedRelation:
|
|
447
|
-
referencedColumns: [
|
|
449
|
+
referencedRelation: 'view_org';
|
|
450
|
+
referencedColumns: ['org_id'];
|
|
448
451
|
}
|
|
449
452
|
];
|
|
450
453
|
};
|
|
@@ -801,7 +804,7 @@ export type Database = {
|
|
|
801
804
|
quoted_message_id: string | null;
|
|
802
805
|
raised_by: string | null;
|
|
803
806
|
response_time: number | null;
|
|
804
|
-
status: Database[
|
|
807
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
805
808
|
subject: string;
|
|
806
809
|
ticket_id: string;
|
|
807
810
|
zohodesk_metadata: Json | null;
|
|
@@ -825,7 +828,7 @@ export type Database = {
|
|
|
825
828
|
quoted_message_id?: string | null;
|
|
826
829
|
raised_by?: string | null;
|
|
827
830
|
response_time?: number | null;
|
|
828
|
-
status?: Database[
|
|
831
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
829
832
|
subject: string;
|
|
830
833
|
ticket_id?: string;
|
|
831
834
|
zohodesk_metadata?: Json | null;
|
|
@@ -849,25 +852,25 @@ export type Database = {
|
|
|
849
852
|
quoted_message_id?: string | null;
|
|
850
853
|
raised_by?: string | null;
|
|
851
854
|
response_time?: number | null;
|
|
852
|
-
status?: Database[
|
|
855
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
853
856
|
subject?: string;
|
|
854
857
|
ticket_id?: string;
|
|
855
858
|
zohodesk_metadata?: Json | null;
|
|
856
859
|
};
|
|
857
860
|
Relationships: [
|
|
858
861
|
{
|
|
859
|
-
foreignKeyName:
|
|
860
|
-
columns: [
|
|
862
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
863
|
+
columns: ['org_id'];
|
|
861
864
|
isOneToOne: false;
|
|
862
|
-
referencedRelation:
|
|
863
|
-
referencedColumns: [
|
|
865
|
+
referencedRelation: 'tbl_org';
|
|
866
|
+
referencedColumns: ['org_id'];
|
|
864
867
|
},
|
|
865
868
|
{
|
|
866
|
-
foreignKeyName:
|
|
867
|
-
columns: [
|
|
869
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
870
|
+
columns: ['org_id'];
|
|
868
871
|
isOneToOne: false;
|
|
869
|
-
referencedRelation:
|
|
870
|
-
referencedColumns: [
|
|
872
|
+
referencedRelation: 'view_org';
|
|
873
|
+
referencedColumns: ['org_id'];
|
|
871
874
|
}
|
|
872
875
|
];
|
|
873
876
|
};
|
|
@@ -952,7 +955,7 @@ export type Database = {
|
|
|
952
955
|
tbl_contacts: {
|
|
953
956
|
Row: {
|
|
954
957
|
business_profile: Json | null;
|
|
955
|
-
contact_color: Database[
|
|
958
|
+
contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
956
959
|
contact_id: string;
|
|
957
960
|
contact_image: string | null;
|
|
958
961
|
contact_name: string | null;
|
|
@@ -981,7 +984,7 @@ export type Database = {
|
|
|
981
984
|
};
|
|
982
985
|
Insert: {
|
|
983
986
|
business_profile?: Json | null;
|
|
984
|
-
contact_color?: Database[
|
|
987
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
985
988
|
contact_id: string;
|
|
986
989
|
contact_image?: string | null;
|
|
987
990
|
contact_name?: string | null;
|
|
@@ -1010,7 +1013,7 @@ export type Database = {
|
|
|
1010
1013
|
};
|
|
1011
1014
|
Update: {
|
|
1012
1015
|
business_profile?: Json | null;
|
|
1013
|
-
contact_color?: Database[
|
|
1016
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1014
1017
|
contact_id?: string;
|
|
1015
1018
|
contact_image?: string | null;
|
|
1016
1019
|
contact_name?: string | null;
|
|
@@ -1039,18 +1042,18 @@ export type Database = {
|
|
|
1039
1042
|
};
|
|
1040
1043
|
Relationships: [
|
|
1041
1044
|
{
|
|
1042
|
-
foreignKeyName:
|
|
1043
|
-
columns: [
|
|
1045
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1046
|
+
columns: ['org_id'];
|
|
1044
1047
|
isOneToOne: false;
|
|
1045
|
-
referencedRelation:
|
|
1046
|
-
referencedColumns: [
|
|
1048
|
+
referencedRelation: 'tbl_org';
|
|
1049
|
+
referencedColumns: ['org_id'];
|
|
1047
1050
|
},
|
|
1048
1051
|
{
|
|
1049
|
-
foreignKeyName:
|
|
1050
|
-
columns: [
|
|
1052
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1053
|
+
columns: ['org_id'];
|
|
1051
1054
|
isOneToOne: false;
|
|
1052
|
-
referencedRelation:
|
|
1053
|
-
referencedColumns: [
|
|
1055
|
+
referencedRelation: 'view_org';
|
|
1056
|
+
referencedColumns: ['org_id'];
|
|
1054
1057
|
}
|
|
1055
1058
|
];
|
|
1056
1059
|
};
|
|
@@ -1087,18 +1090,18 @@ export type Database = {
|
|
|
1087
1090
|
};
|
|
1088
1091
|
Relationships: [
|
|
1089
1092
|
{
|
|
1090
|
-
foreignKeyName:
|
|
1091
|
-
columns: [
|
|
1093
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1094
|
+
columns: ['org_id'];
|
|
1092
1095
|
isOneToOne: false;
|
|
1093
|
-
referencedRelation:
|
|
1094
|
-
referencedColumns: [
|
|
1096
|
+
referencedRelation: 'tbl_org';
|
|
1097
|
+
referencedColumns: ['org_id'];
|
|
1095
1098
|
},
|
|
1096
1099
|
{
|
|
1097
|
-
foreignKeyName:
|
|
1098
|
-
columns: [
|
|
1100
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1101
|
+
columns: ['org_id'];
|
|
1099
1102
|
isOneToOne: false;
|
|
1100
|
-
referencedRelation:
|
|
1101
|
-
referencedColumns: [
|
|
1103
|
+
referencedRelation: 'view_org';
|
|
1104
|
+
referencedColumns: ['org_id'];
|
|
1102
1105
|
}
|
|
1103
1106
|
];
|
|
1104
1107
|
};
|
|
@@ -1108,51 +1111,51 @@ export type Database = {
|
|
|
1108
1111
|
id: string;
|
|
1109
1112
|
integration_id: string | null;
|
|
1110
1113
|
integration_metadata: Json;
|
|
1111
|
-
integration_name: Database[
|
|
1114
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1112
1115
|
integration_type: string;
|
|
1113
1116
|
is_subscribed: boolean;
|
|
1114
1117
|
org_id: string;
|
|
1115
1118
|
subscribed_at: string;
|
|
1116
|
-
type: Database[
|
|
1119
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1117
1120
|
};
|
|
1118
1121
|
Insert: {
|
|
1119
1122
|
hook_url: string;
|
|
1120
1123
|
id?: string;
|
|
1121
1124
|
integration_id?: string | null;
|
|
1122
1125
|
integration_metadata: Json;
|
|
1123
|
-
integration_name: Database[
|
|
1126
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1124
1127
|
integration_type: string;
|
|
1125
1128
|
is_subscribed: boolean;
|
|
1126
1129
|
org_id: string;
|
|
1127
1130
|
subscribed_at?: string;
|
|
1128
|
-
type: Database[
|
|
1131
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1129
1132
|
};
|
|
1130
1133
|
Update: {
|
|
1131
1134
|
hook_url?: string;
|
|
1132
1135
|
id?: string;
|
|
1133
1136
|
integration_id?: string | null;
|
|
1134
1137
|
integration_metadata?: Json;
|
|
1135
|
-
integration_name?: Database[
|
|
1138
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1136
1139
|
integration_type?: string;
|
|
1137
1140
|
is_subscribed?: boolean;
|
|
1138
1141
|
org_id?: string;
|
|
1139
1142
|
subscribed_at?: string;
|
|
1140
|
-
type?: Database[
|
|
1143
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1141
1144
|
};
|
|
1142
1145
|
Relationships: [
|
|
1143
1146
|
{
|
|
1144
|
-
foreignKeyName:
|
|
1145
|
-
columns: [
|
|
1147
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1148
|
+
columns: ['org_id'];
|
|
1146
1149
|
isOneToOne: false;
|
|
1147
|
-
referencedRelation:
|
|
1148
|
-
referencedColumns: [
|
|
1150
|
+
referencedRelation: 'tbl_org';
|
|
1151
|
+
referencedColumns: ['org_id'];
|
|
1149
1152
|
},
|
|
1150
1153
|
{
|
|
1151
|
-
foreignKeyName:
|
|
1152
|
-
columns: [
|
|
1154
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1155
|
+
columns: ['org_id'];
|
|
1153
1156
|
isOneToOne: false;
|
|
1154
|
-
referencedRelation:
|
|
1155
|
-
referencedColumns: [
|
|
1157
|
+
referencedRelation: 'view_org';
|
|
1158
|
+
referencedColumns: ['org_id'];
|
|
1156
1159
|
}
|
|
1157
1160
|
];
|
|
1158
1161
|
};
|
|
@@ -1160,50 +1163,50 @@ export type Database = {
|
|
|
1160
1163
|
Row: {
|
|
1161
1164
|
created_at: string;
|
|
1162
1165
|
id: string;
|
|
1163
|
-
integration_name: Database[
|
|
1166
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1164
1167
|
integration_type: string;
|
|
1165
1168
|
metadata: Json;
|
|
1166
1169
|
org_id: string;
|
|
1167
1170
|
response: Json | null;
|
|
1168
1171
|
success: boolean;
|
|
1169
|
-
type: Database[
|
|
1172
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1170
1173
|
};
|
|
1171
1174
|
Insert: {
|
|
1172
1175
|
created_at?: string;
|
|
1173
1176
|
id?: string;
|
|
1174
|
-
integration_name: Database[
|
|
1177
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1175
1178
|
integration_type: string;
|
|
1176
1179
|
metadata?: Json;
|
|
1177
1180
|
org_id: string;
|
|
1178
1181
|
response?: Json | null;
|
|
1179
1182
|
success?: boolean;
|
|
1180
|
-
type: Database[
|
|
1183
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1181
1184
|
};
|
|
1182
1185
|
Update: {
|
|
1183
1186
|
created_at?: string;
|
|
1184
1187
|
id?: string;
|
|
1185
|
-
integration_name?: Database[
|
|
1188
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1186
1189
|
integration_type?: string;
|
|
1187
1190
|
metadata?: Json;
|
|
1188
1191
|
org_id?: string;
|
|
1189
1192
|
response?: Json | null;
|
|
1190
1193
|
success?: boolean;
|
|
1191
|
-
type?: Database[
|
|
1194
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1192
1195
|
};
|
|
1193
1196
|
Relationships: [
|
|
1194
1197
|
{
|
|
1195
|
-
foreignKeyName:
|
|
1196
|
-
columns: [
|
|
1198
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1199
|
+
columns: ['org_id'];
|
|
1197
1200
|
isOneToOne: false;
|
|
1198
|
-
referencedRelation:
|
|
1199
|
-
referencedColumns: [
|
|
1201
|
+
referencedRelation: 'tbl_org';
|
|
1202
|
+
referencedColumns: ['org_id'];
|
|
1200
1203
|
},
|
|
1201
1204
|
{
|
|
1202
|
-
foreignKeyName:
|
|
1203
|
-
columns: [
|
|
1205
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1206
|
+
columns: ['org_id'];
|
|
1204
1207
|
isOneToOne: false;
|
|
1205
|
-
referencedRelation:
|
|
1206
|
-
referencedColumns: [
|
|
1208
|
+
referencedRelation: 'view_org';
|
|
1209
|
+
referencedColumns: ['org_id'];
|
|
1207
1210
|
}
|
|
1208
1211
|
];
|
|
1209
1212
|
};
|
|
@@ -1218,7 +1221,7 @@ export type Database = {
|
|
|
1218
1221
|
role: string;
|
|
1219
1222
|
token: string;
|
|
1220
1223
|
token_metadata: Json | null;
|
|
1221
|
-
type: Database[
|
|
1224
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1222
1225
|
};
|
|
1223
1226
|
Insert: {
|
|
1224
1227
|
exp: string;
|
|
@@ -1230,7 +1233,7 @@ export type Database = {
|
|
|
1230
1233
|
role: string;
|
|
1231
1234
|
token: string;
|
|
1232
1235
|
token_metadata?: Json | null;
|
|
1233
|
-
type: Database[
|
|
1236
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1234
1237
|
};
|
|
1235
1238
|
Update: {
|
|
1236
1239
|
exp?: string;
|
|
@@ -1242,22 +1245,22 @@ export type Database = {
|
|
|
1242
1245
|
role?: string;
|
|
1243
1246
|
token?: string;
|
|
1244
1247
|
token_metadata?: Json | null;
|
|
1245
|
-
type?: Database[
|
|
1248
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1246
1249
|
};
|
|
1247
1250
|
Relationships: [
|
|
1248
1251
|
{
|
|
1249
|
-
foreignKeyName:
|
|
1250
|
-
columns: [
|
|
1252
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1253
|
+
columns: ['org_id'];
|
|
1251
1254
|
isOneToOne: false;
|
|
1252
|
-
referencedRelation:
|
|
1253
|
-
referencedColumns: [
|
|
1255
|
+
referencedRelation: 'tbl_org';
|
|
1256
|
+
referencedColumns: ['org_id'];
|
|
1254
1257
|
},
|
|
1255
1258
|
{
|
|
1256
|
-
foreignKeyName:
|
|
1257
|
-
columns: [
|
|
1259
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1260
|
+
columns: ['org_id'];
|
|
1258
1261
|
isOneToOne: false;
|
|
1259
|
-
referencedRelation:
|
|
1260
|
-
referencedColumns: [
|
|
1262
|
+
referencedRelation: 'view_org';
|
|
1263
|
+
referencedColumns: ['org_id'];
|
|
1261
1264
|
}
|
|
1262
1265
|
];
|
|
1263
1266
|
};
|
|
@@ -1327,18 +1330,18 @@ export type Database = {
|
|
|
1327
1330
|
};
|
|
1328
1331
|
Relationships: [
|
|
1329
1332
|
{
|
|
1330
|
-
foreignKeyName:
|
|
1331
|
-
columns: [
|
|
1333
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1334
|
+
columns: ['org_id'];
|
|
1332
1335
|
isOneToOne: false;
|
|
1333
|
-
referencedRelation:
|
|
1334
|
-
referencedColumns: [
|
|
1336
|
+
referencedRelation: 'tbl_org';
|
|
1337
|
+
referencedColumns: ['org_id'];
|
|
1335
1338
|
},
|
|
1336
1339
|
{
|
|
1337
|
-
foreignKeyName:
|
|
1338
|
-
columns: [
|
|
1340
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1341
|
+
columns: ['org_id'];
|
|
1339
1342
|
isOneToOne: false;
|
|
1340
|
-
referencedRelation:
|
|
1341
|
-
referencedColumns: [
|
|
1343
|
+
referencedRelation: 'view_org';
|
|
1344
|
+
referencedColumns: ['org_id'];
|
|
1342
1345
|
}
|
|
1343
1346
|
];
|
|
1344
1347
|
};
|
|
@@ -1351,13 +1354,13 @@ export type Database = {
|
|
|
1351
1354
|
is_active: boolean;
|
|
1352
1355
|
is_owner: boolean | null;
|
|
1353
1356
|
label_ids: string[] | null;
|
|
1354
|
-
member_color: Database[
|
|
1357
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1355
1358
|
member_image: string | null;
|
|
1356
1359
|
member_name: string | null;
|
|
1357
1360
|
org_id: string;
|
|
1358
1361
|
org_phones: string[] | null;
|
|
1359
1362
|
preferences: Json;
|
|
1360
|
-
role: Database[
|
|
1363
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1361
1364
|
user_id: string | null;
|
|
1362
1365
|
};
|
|
1363
1366
|
Insert: {
|
|
@@ -1368,13 +1371,13 @@ export type Database = {
|
|
|
1368
1371
|
is_active?: boolean;
|
|
1369
1372
|
is_owner?: boolean | null;
|
|
1370
1373
|
label_ids?: string[] | null;
|
|
1371
|
-
member_color?: Database[
|
|
1374
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1372
1375
|
member_image?: string | null;
|
|
1373
1376
|
member_name?: string | null;
|
|
1374
1377
|
org_id: string;
|
|
1375
1378
|
org_phones?: string[] | null;
|
|
1376
1379
|
preferences?: Json;
|
|
1377
|
-
role?: Database[
|
|
1380
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1378
1381
|
user_id?: string | null;
|
|
1379
1382
|
};
|
|
1380
1383
|
Update: {
|
|
@@ -1385,36 +1388,36 @@ export type Database = {
|
|
|
1385
1388
|
is_active?: boolean;
|
|
1386
1389
|
is_owner?: boolean | null;
|
|
1387
1390
|
label_ids?: string[] | null;
|
|
1388
|
-
member_color?: Database[
|
|
1391
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1389
1392
|
member_image?: string | null;
|
|
1390
1393
|
member_name?: string | null;
|
|
1391
1394
|
org_id?: string;
|
|
1392
1395
|
org_phones?: string[] | null;
|
|
1393
1396
|
preferences?: Json;
|
|
1394
|
-
role?: Database[
|
|
1397
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1395
1398
|
user_id?: string | null;
|
|
1396
1399
|
};
|
|
1397
1400
|
Relationships: [
|
|
1398
1401
|
{
|
|
1399
|
-
foreignKeyName:
|
|
1400
|
-
columns: [
|
|
1402
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1403
|
+
columns: ['user_id'];
|
|
1401
1404
|
isOneToOne: false;
|
|
1402
|
-
referencedRelation:
|
|
1403
|
-
referencedColumns: [
|
|
1405
|
+
referencedRelation: 'users';
|
|
1406
|
+
referencedColumns: ['id'];
|
|
1404
1407
|
},
|
|
1405
1408
|
{
|
|
1406
|
-
foreignKeyName:
|
|
1407
|
-
columns: [
|
|
1409
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1410
|
+
columns: ['org_id'];
|
|
1408
1411
|
isOneToOne: false;
|
|
1409
|
-
referencedRelation:
|
|
1410
|
-
referencedColumns: [
|
|
1412
|
+
referencedRelation: 'tbl_org';
|
|
1413
|
+
referencedColumns: ['org_id'];
|
|
1411
1414
|
},
|
|
1412
1415
|
{
|
|
1413
|
-
foreignKeyName:
|
|
1414
|
-
columns: [
|
|
1416
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1417
|
+
columns: ['org_id'];
|
|
1415
1418
|
isOneToOne: false;
|
|
1416
|
-
referencedRelation:
|
|
1417
|
-
referencedColumns: [
|
|
1419
|
+
referencedRelation: 'view_org';
|
|
1420
|
+
referencedColumns: ['org_id'];
|
|
1418
1421
|
}
|
|
1419
1422
|
];
|
|
1420
1423
|
};
|
|
@@ -1484,35 +1487,68 @@ export type Database = {
|
|
|
1484
1487
|
};
|
|
1485
1488
|
Relationships: [
|
|
1486
1489
|
{
|
|
1487
|
-
foreignKeyName:
|
|
1488
|
-
columns: [
|
|
1490
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1491
|
+
columns: ['org_id'];
|
|
1489
1492
|
isOneToOne: false;
|
|
1490
|
-
referencedRelation:
|
|
1491
|
-
referencedColumns: [
|
|
1493
|
+
referencedRelation: 'tbl_org';
|
|
1494
|
+
referencedColumns: ['org_id'];
|
|
1492
1495
|
},
|
|
1493
1496
|
{
|
|
1494
|
-
foreignKeyName:
|
|
1495
|
-
columns: [
|
|
1497
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1498
|
+
columns: ['org_id'];
|
|
1496
1499
|
isOneToOne: false;
|
|
1497
|
-
referencedRelation:
|
|
1498
|
-
referencedColumns: [
|
|
1500
|
+
referencedRelation: 'view_org';
|
|
1501
|
+
referencedColumns: ['org_id'];
|
|
1499
1502
|
},
|
|
1500
1503
|
{
|
|
1501
|
-
foreignKeyName:
|
|
1502
|
-
columns: [
|
|
1504
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1505
|
+
columns: ['org_id'];
|
|
1503
1506
|
isOneToOne: false;
|
|
1504
|
-
referencedRelation:
|
|
1505
|
-
referencedColumns: [
|
|
1507
|
+
referencedRelation: 'tbl_org';
|
|
1508
|
+
referencedColumns: ['org_id'];
|
|
1506
1509
|
},
|
|
1507
1510
|
{
|
|
1508
|
-
foreignKeyName:
|
|
1509
|
-
columns: [
|
|
1511
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1512
|
+
columns: ['org_id'];
|
|
1510
1513
|
isOneToOne: false;
|
|
1511
|
-
referencedRelation:
|
|
1512
|
-
referencedColumns: [
|
|
1514
|
+
referencedRelation: 'view_org';
|
|
1515
|
+
referencedColumns: ['org_id'];
|
|
1513
1516
|
}
|
|
1514
1517
|
];
|
|
1515
1518
|
};
|
|
1519
|
+
tbl_org_transactions: {
|
|
1520
|
+
Row: {
|
|
1521
|
+
amount: number;
|
|
1522
|
+
is_top_up: boolean | null;
|
|
1523
|
+
org_id: string;
|
|
1524
|
+
timestamp: string | null;
|
|
1525
|
+
transaction_id: string;
|
|
1526
|
+
transaction_metadata: Json | null;
|
|
1527
|
+
transaction_type: Database['public']['Enums']['enum_credit_transaction_type'];
|
|
1528
|
+
usage_metadata: Json | null;
|
|
1529
|
+
};
|
|
1530
|
+
Insert: {
|
|
1531
|
+
amount: number;
|
|
1532
|
+
is_top_up?: boolean | null;
|
|
1533
|
+
org_id: string;
|
|
1534
|
+
timestamp?: string | null;
|
|
1535
|
+
transaction_id?: string;
|
|
1536
|
+
transaction_metadata?: Json | null;
|
|
1537
|
+
transaction_type: Database['public']['Enums']['enum_credit_transaction_type'];
|
|
1538
|
+
usage_metadata?: Json | null;
|
|
1539
|
+
};
|
|
1540
|
+
Update: {
|
|
1541
|
+
amount?: number;
|
|
1542
|
+
is_top_up?: boolean | null;
|
|
1543
|
+
org_id?: string;
|
|
1544
|
+
timestamp?: string | null;
|
|
1545
|
+
transaction_id?: string;
|
|
1546
|
+
transaction_metadata?: Json | null;
|
|
1547
|
+
transaction_type?: Database['public']['Enums']['enum_credit_transaction_type'];
|
|
1548
|
+
usage_metadata?: Json | null;
|
|
1549
|
+
};
|
|
1550
|
+
Relationships: [];
|
|
1551
|
+
};
|
|
1516
1552
|
tbl_quick_replies: {
|
|
1517
1553
|
Row: {
|
|
1518
1554
|
command: string | null;
|
|
@@ -1537,18 +1573,18 @@ export type Database = {
|
|
|
1537
1573
|
};
|
|
1538
1574
|
Relationships: [
|
|
1539
1575
|
{
|
|
1540
|
-
foreignKeyName:
|
|
1541
|
-
columns: [
|
|
1576
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1577
|
+
columns: ['org_id'];
|
|
1542
1578
|
isOneToOne: false;
|
|
1543
|
-
referencedRelation:
|
|
1544
|
-
referencedColumns: [
|
|
1579
|
+
referencedRelation: 'tbl_org';
|
|
1580
|
+
referencedColumns: ['org_id'];
|
|
1545
1581
|
},
|
|
1546
1582
|
{
|
|
1547
|
-
foreignKeyName:
|
|
1548
|
-
columns: [
|
|
1583
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1584
|
+
columns: ['org_id'];
|
|
1549
1585
|
isOneToOne: false;
|
|
1550
|
-
referencedRelation:
|
|
1551
|
-
referencedColumns: [
|
|
1586
|
+
referencedRelation: 'view_org';
|
|
1587
|
+
referencedColumns: ['org_id'];
|
|
1552
1588
|
}
|
|
1553
1589
|
];
|
|
1554
1590
|
};
|
|
@@ -1594,18 +1630,18 @@ export type Database = {
|
|
|
1594
1630
|
};
|
|
1595
1631
|
Relationships: [
|
|
1596
1632
|
{
|
|
1597
|
-
foreignKeyName:
|
|
1598
|
-
columns: [
|
|
1633
|
+
foreignKeyName: 'tbl_scheduled_messages_org_id_fkey';
|
|
1634
|
+
columns: ['org_id'];
|
|
1599
1635
|
isOneToOne: false;
|
|
1600
|
-
referencedRelation:
|
|
1601
|
-
referencedColumns: [
|
|
1636
|
+
referencedRelation: 'tbl_org';
|
|
1637
|
+
referencedColumns: ['org_id'];
|
|
1602
1638
|
},
|
|
1603
1639
|
{
|
|
1604
|
-
foreignKeyName:
|
|
1605
|
-
columns: [
|
|
1640
|
+
foreignKeyName: 'tbl_scheduled_messages_org_id_fkey';
|
|
1641
|
+
columns: ['org_id'];
|
|
1606
1642
|
isOneToOne: false;
|
|
1607
|
-
referencedRelation:
|
|
1608
|
-
referencedColumns: [
|
|
1643
|
+
referencedRelation: 'view_org';
|
|
1644
|
+
referencedColumns: ['org_id'];
|
|
1609
1645
|
}
|
|
1610
1646
|
];
|
|
1611
1647
|
};
|
|
@@ -1638,7 +1674,7 @@ export type Database = {
|
|
|
1638
1674
|
view_broadcast_logs: {
|
|
1639
1675
|
Row: {
|
|
1640
1676
|
broadcast_id: string | null;
|
|
1641
|
-
broadcast_status: Database[
|
|
1677
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
1642
1678
|
created_at: string | null;
|
|
1643
1679
|
delivered_percentage: number | null;
|
|
1644
1680
|
failed_chats: number | null;
|
|
@@ -1657,18 +1693,18 @@ export type Database = {
|
|
|
1657
1693
|
};
|
|
1658
1694
|
Relationships: [
|
|
1659
1695
|
{
|
|
1660
|
-
foreignKeyName:
|
|
1661
|
-
columns: [
|
|
1696
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1697
|
+
columns: ['org_id'];
|
|
1662
1698
|
isOneToOne: false;
|
|
1663
|
-
referencedRelation:
|
|
1664
|
-
referencedColumns: [
|
|
1699
|
+
referencedRelation: 'tbl_org';
|
|
1700
|
+
referencedColumns: ['org_id'];
|
|
1665
1701
|
},
|
|
1666
1702
|
{
|
|
1667
|
-
foreignKeyName:
|
|
1668
|
-
columns: [
|
|
1703
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1704
|
+
columns: ['org_id'];
|
|
1669
1705
|
isOneToOne: false;
|
|
1670
|
-
referencedRelation:
|
|
1671
|
-
referencedColumns: [
|
|
1706
|
+
referencedRelation: 'view_org';
|
|
1707
|
+
referencedColumns: ['org_id'];
|
|
1672
1708
|
}
|
|
1673
1709
|
];
|
|
1674
1710
|
};
|
|
@@ -1688,18 +1724,18 @@ export type Database = {
|
|
|
1688
1724
|
};
|
|
1689
1725
|
Relationships: [
|
|
1690
1726
|
{
|
|
1691
|
-
foreignKeyName:
|
|
1692
|
-
columns: [
|
|
1727
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
1728
|
+
columns: ['org_id'];
|
|
1693
1729
|
isOneToOne: false;
|
|
1694
|
-
referencedRelation:
|
|
1695
|
-
referencedColumns: [
|
|
1730
|
+
referencedRelation: 'tbl_org';
|
|
1731
|
+
referencedColumns: ['org_id'];
|
|
1696
1732
|
},
|
|
1697
1733
|
{
|
|
1698
|
-
foreignKeyName:
|
|
1699
|
-
columns: [
|
|
1734
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
1735
|
+
columns: ['org_id'];
|
|
1700
1736
|
isOneToOne: false;
|
|
1701
|
-
referencedRelation:
|
|
1702
|
-
referencedColumns: [
|
|
1737
|
+
referencedRelation: 'view_org';
|
|
1738
|
+
referencedColumns: ['org_id'];
|
|
1703
1739
|
}
|
|
1704
1740
|
];
|
|
1705
1741
|
};
|
|
@@ -1845,7 +1881,7 @@ export type Database = {
|
|
|
1845
1881
|
generate_access_token: {
|
|
1846
1882
|
Args: {
|
|
1847
1883
|
name_input?: string;
|
|
1848
|
-
type_input?: Database[
|
|
1884
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1849
1885
|
org_id_input?: string;
|
|
1850
1886
|
};
|
|
1851
1887
|
Returns: Json;
|
|
@@ -1855,7 +1891,7 @@ export type Database = {
|
|
|
1855
1891
|
org_id_input?: string;
|
|
1856
1892
|
org_phone_input?: string;
|
|
1857
1893
|
token_id_input?: string;
|
|
1858
|
-
token_type_input?: Database[
|
|
1894
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1859
1895
|
};
|
|
1860
1896
|
Returns: Json;
|
|
1861
1897
|
};
|
|
@@ -1866,6 +1902,14 @@ export type Database = {
|
|
|
1866
1902
|
};
|
|
1867
1903
|
Returns: Json[];
|
|
1868
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
|
+
};
|
|
1869
1913
|
get_chats: {
|
|
1870
1914
|
Args: {
|
|
1871
1915
|
org_id_input: string;
|
|
@@ -1918,6 +1962,16 @@ export type Database = {
|
|
|
1918
1962
|
};
|
|
1919
1963
|
Returns: Json;
|
|
1920
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
|
+
};
|
|
1921
1975
|
get_messages_notifications_reactions: {
|
|
1922
1976
|
Args: {
|
|
1923
1977
|
org_id_input: string;
|
|
@@ -1933,6 +1987,12 @@ export type Database = {
|
|
|
1933
1987
|
};
|
|
1934
1988
|
Returns: Json;
|
|
1935
1989
|
};
|
|
1990
|
+
get_org_credits: {
|
|
1991
|
+
Args: {
|
|
1992
|
+
org_id_input?: string;
|
|
1993
|
+
};
|
|
1994
|
+
Returns: Json;
|
|
1995
|
+
};
|
|
1936
1996
|
get_org_phones: {
|
|
1937
1997
|
Args: {
|
|
1938
1998
|
org_id_input?: string;
|
|
@@ -1940,6 +2000,17 @@ export type Database = {
|
|
|
1940
2000
|
};
|
|
1941
2001
|
Returns: Json;
|
|
1942
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
|
+
};
|
|
1943
2014
|
get_team_metrics_between_dates: {
|
|
1944
2015
|
Args: {
|
|
1945
2016
|
org_id_input: string;
|
|
@@ -1958,6 +2029,15 @@ export type Database = {
|
|
|
1958
2029
|
};
|
|
1959
2030
|
Returns: Json;
|
|
1960
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
|
+
};
|
|
1961
2041
|
get_universal_search_result: {
|
|
1962
2042
|
Args: {
|
|
1963
2043
|
search_category_input: string;
|
|
@@ -1983,7 +2063,7 @@ export type Database = {
|
|
|
1983
2063
|
};
|
|
1984
2064
|
list_role_from_user: {
|
|
1985
2065
|
Args: Record<PropertyKey, never>;
|
|
1986
|
-
Returns: Database[
|
|
2066
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
1987
2067
|
};
|
|
1988
2068
|
update_chat_properties: {
|
|
1989
2069
|
Args: {
|
|
@@ -2014,12 +2094,13 @@ export type Database = {
|
|
|
2014
2094
|
};
|
|
2015
2095
|
};
|
|
2016
2096
|
Enums: {
|
|
2017
|
-
enum_broadcast_status:
|
|
2018
|
-
enum_chat_colors:
|
|
2019
|
-
enum_chat_tickets_status:
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
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';
|
|
2023
2104
|
};
|
|
2024
2105
|
CompositeTypes: {
|
|
2025
2106
|
[_ in never]: never;
|
|
@@ -2132,11 +2213,11 @@ export type Database = {
|
|
|
2132
2213
|
};
|
|
2133
2214
|
Relationships: [
|
|
2134
2215
|
{
|
|
2135
|
-
foreignKeyName:
|
|
2136
|
-
columns: [
|
|
2216
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
2217
|
+
columns: ['bucket_id'];
|
|
2137
2218
|
isOneToOne: false;
|
|
2138
|
-
referencedRelation:
|
|
2139
|
-
referencedColumns: [
|
|
2219
|
+
referencedRelation: 'buckets';
|
|
2220
|
+
referencedColumns: ['id'];
|
|
2140
2221
|
}
|
|
2141
2222
|
];
|
|
2142
2223
|
};
|
|
@@ -2176,11 +2257,11 @@ export type Database = {
|
|
|
2176
2257
|
};
|
|
2177
2258
|
Relationships: [
|
|
2178
2259
|
{
|
|
2179
|
-
foreignKeyName:
|
|
2180
|
-
columns: [
|
|
2260
|
+
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
2261
|
+
columns: ['bucket_id'];
|
|
2181
2262
|
isOneToOne: false;
|
|
2182
|
-
referencedRelation:
|
|
2183
|
-
referencedColumns: [
|
|
2263
|
+
referencedRelation: 'buckets';
|
|
2264
|
+
referencedColumns: ['id'];
|
|
2184
2265
|
}
|
|
2185
2266
|
];
|
|
2186
2267
|
};
|
|
@@ -2223,18 +2304,18 @@ export type Database = {
|
|
|
2223
2304
|
};
|
|
2224
2305
|
Relationships: [
|
|
2225
2306
|
{
|
|
2226
|
-
foreignKeyName:
|
|
2227
|
-
columns: [
|
|
2307
|
+
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
2308
|
+
columns: ['bucket_id'];
|
|
2228
2309
|
isOneToOne: false;
|
|
2229
|
-
referencedRelation:
|
|
2230
|
-
referencedColumns: [
|
|
2310
|
+
referencedRelation: 'buckets';
|
|
2311
|
+
referencedColumns: ['id'];
|
|
2231
2312
|
},
|
|
2232
2313
|
{
|
|
2233
|
-
foreignKeyName:
|
|
2234
|
-
columns: [
|
|
2314
|
+
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
2315
|
+
columns: ['upload_id'];
|
|
2235
2316
|
isOneToOne: false;
|
|
2236
|
-
referencedRelation:
|
|
2237
|
-
referencedColumns: [
|
|
2317
|
+
referencedRelation: 's3_multipart_uploads';
|
|
2318
|
+
referencedColumns: ['id'];
|
|
2238
2319
|
}
|
|
2239
2320
|
];
|
|
2240
2321
|
};
|
|
@@ -2341,45 +2422,45 @@ export type Database = {
|
|
|
2341
2422
|
};
|
|
2342
2423
|
};
|
|
2343
2424
|
};
|
|
2344
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2345
|
-
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']) | {
|
|
2346
2427
|
schema: keyof Database;
|
|
2347
2428
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2348
2429
|
schema: keyof Database;
|
|
2349
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2430
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
2350
2431
|
schema: keyof Database;
|
|
2351
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2432
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2352
2433
|
Row: infer R;
|
|
2353
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2434
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
2354
2435
|
Row: infer R;
|
|
2355
2436
|
} ? R : never : never;
|
|
2356
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2437
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2357
2438
|
schema: keyof Database;
|
|
2358
2439
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2359
2440
|
schema: keyof Database;
|
|
2360
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2441
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2361
2442
|
schema: keyof Database;
|
|
2362
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2443
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2363
2444
|
Insert: infer I;
|
|
2364
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2445
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2365
2446
|
Insert: infer I;
|
|
2366
2447
|
} ? I : never : never;
|
|
2367
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2448
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2368
2449
|
schema: keyof Database;
|
|
2369
2450
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2370
2451
|
schema: keyof Database;
|
|
2371
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2452
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2372
2453
|
schema: keyof Database;
|
|
2373
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2454
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2374
2455
|
Update: infer U;
|
|
2375
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2456
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2376
2457
|
Update: infer U;
|
|
2377
2458
|
} ? U : never : never;
|
|
2378
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2459
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
2379
2460
|
schema: keyof Database;
|
|
2380
2461
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2381
2462
|
schema: keyof Database;
|
|
2382
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2463
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
2383
2464
|
schema: keyof Database;
|
|
2384
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2465
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
2385
2466
|
export {};
|