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