@periskope/types 0.6.146 → 0.6.147
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 +265 -0
- package/dist/rules.types.js +923 -0
- package/dist/supabase.types.d.ts +319 -251
- package/dist/types.d.ts +44 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +1308 -0
- package/supabase.types.ts +2602 -2540
- package/types.ts +752 -593
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,6 +2,31 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
+
graphql_public: {
|
|
6
|
+
Tables: {
|
|
7
|
+
[_ in never]: never;
|
|
8
|
+
};
|
|
9
|
+
Views: {
|
|
10
|
+
[_ in never]: never;
|
|
11
|
+
};
|
|
12
|
+
Functions: {
|
|
13
|
+
graphql: {
|
|
14
|
+
Args: {
|
|
15
|
+
operationName?: string;
|
|
16
|
+
query?: string;
|
|
17
|
+
variables?: Json;
|
|
18
|
+
extensions?: Json;
|
|
19
|
+
};
|
|
20
|
+
Returns: Json;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
Enums: {
|
|
24
|
+
[_ in never]: never;
|
|
25
|
+
};
|
|
26
|
+
CompositeTypes: {
|
|
27
|
+
[_ in never]: never;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
5
30
|
internal: {
|
|
6
31
|
Tables: {
|
|
7
32
|
config: {
|
|
@@ -200,18 +225,18 @@ export type Database = {
|
|
|
200
225
|
};
|
|
201
226
|
Relationships: [
|
|
202
227
|
{
|
|
203
|
-
foreignKeyName:
|
|
204
|
-
columns: [
|
|
228
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
229
|
+
columns: ["org_id"];
|
|
205
230
|
isOneToOne: false;
|
|
206
|
-
referencedRelation:
|
|
207
|
-
referencedColumns: [
|
|
231
|
+
referencedRelation: "tbl_org";
|
|
232
|
+
referencedColumns: ["org_id"];
|
|
208
233
|
},
|
|
209
234
|
{
|
|
210
|
-
foreignKeyName:
|
|
211
|
-
columns: [
|
|
235
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
236
|
+
columns: ["org_id"];
|
|
212
237
|
isOneToOne: false;
|
|
213
|
-
referencedRelation:
|
|
214
|
-
referencedColumns: [
|
|
238
|
+
referencedRelation: "view_org";
|
|
239
|
+
referencedColumns: ["org_id"];
|
|
215
240
|
}
|
|
216
241
|
];
|
|
217
242
|
};
|
|
@@ -263,39 +288,39 @@ export type Database = {
|
|
|
263
288
|
};
|
|
264
289
|
Relationships: [
|
|
265
290
|
{
|
|
266
|
-
foreignKeyName:
|
|
267
|
-
columns: [
|
|
291
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
292
|
+
columns: ["broadcast_id"];
|
|
268
293
|
isOneToOne: false;
|
|
269
|
-
referencedRelation:
|
|
270
|
-
referencedColumns: [
|
|
294
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
295
|
+
referencedColumns: ["broadcast_id"];
|
|
271
296
|
},
|
|
272
297
|
{
|
|
273
|
-
foreignKeyName:
|
|
274
|
-
columns: [
|
|
298
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
299
|
+
columns: ["broadcast_id"];
|
|
275
300
|
isOneToOne: false;
|
|
276
|
-
referencedRelation:
|
|
277
|
-
referencedColumns: [
|
|
301
|
+
referencedRelation: "view_broadcast_logs";
|
|
302
|
+
referencedColumns: ["broadcast_id"];
|
|
278
303
|
},
|
|
279
304
|
{
|
|
280
|
-
foreignKeyName:
|
|
281
|
-
columns: [
|
|
305
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
306
|
+
columns: ["org_id"];
|
|
282
307
|
isOneToOne: false;
|
|
283
|
-
referencedRelation:
|
|
284
|
-
referencedColumns: [
|
|
308
|
+
referencedRelation: "tbl_org";
|
|
309
|
+
referencedColumns: ["org_id"];
|
|
285
310
|
},
|
|
286
311
|
{
|
|
287
|
-
foreignKeyName:
|
|
288
|
-
columns: [
|
|
312
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
313
|
+
columns: ["org_id"];
|
|
289
314
|
isOneToOne: false;
|
|
290
|
-
referencedRelation:
|
|
291
|
-
referencedColumns: [
|
|
315
|
+
referencedRelation: "view_org";
|
|
316
|
+
referencedColumns: ["org_id"];
|
|
292
317
|
}
|
|
293
318
|
];
|
|
294
319
|
};
|
|
295
320
|
tbl_broadcast_messages: {
|
|
296
321
|
Row: {
|
|
297
322
|
broadcast_id: string;
|
|
298
|
-
broadcast_status: Database[
|
|
323
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
299
324
|
chat_ids: string[] | null;
|
|
300
325
|
created_at: string;
|
|
301
326
|
message_payload: Json | null;
|
|
@@ -308,7 +333,7 @@ export type Database = {
|
|
|
308
333
|
};
|
|
309
334
|
Insert: {
|
|
310
335
|
broadcast_id?: string;
|
|
311
|
-
broadcast_status?: Database[
|
|
336
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
312
337
|
chat_ids?: string[] | null;
|
|
313
338
|
created_at?: string;
|
|
314
339
|
message_payload?: Json | null;
|
|
@@ -321,7 +346,7 @@ export type Database = {
|
|
|
321
346
|
};
|
|
322
347
|
Update: {
|
|
323
348
|
broadcast_id?: string;
|
|
324
|
-
broadcast_status?: Database[
|
|
349
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
325
350
|
chat_ids?: string[] | null;
|
|
326
351
|
created_at?: string;
|
|
327
352
|
message_payload?: Json | null;
|
|
@@ -334,18 +359,18 @@ export type Database = {
|
|
|
334
359
|
};
|
|
335
360
|
Relationships: [
|
|
336
361
|
{
|
|
337
|
-
foreignKeyName:
|
|
338
|
-
columns: [
|
|
362
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
363
|
+
columns: ["org_id"];
|
|
339
364
|
isOneToOne: false;
|
|
340
|
-
referencedRelation:
|
|
341
|
-
referencedColumns: [
|
|
365
|
+
referencedRelation: "tbl_org";
|
|
366
|
+
referencedColumns: ["org_id"];
|
|
342
367
|
},
|
|
343
368
|
{
|
|
344
|
-
foreignKeyName:
|
|
345
|
-
columns: [
|
|
369
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
370
|
+
columns: ["org_id"];
|
|
346
371
|
isOneToOne: false;
|
|
347
|
-
referencedRelation:
|
|
348
|
-
referencedColumns: [
|
|
372
|
+
referencedRelation: "view_org";
|
|
373
|
+
referencedColumns: ["org_id"];
|
|
349
374
|
}
|
|
350
375
|
];
|
|
351
376
|
};
|
|
@@ -379,18 +404,18 @@ export type Database = {
|
|
|
379
404
|
};
|
|
380
405
|
Relationships: [
|
|
381
406
|
{
|
|
382
|
-
foreignKeyName:
|
|
383
|
-
columns: [
|
|
407
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
408
|
+
columns: ["org_id"];
|
|
384
409
|
isOneToOne: false;
|
|
385
|
-
referencedRelation:
|
|
386
|
-
referencedColumns: [
|
|
410
|
+
referencedRelation: "tbl_org";
|
|
411
|
+
referencedColumns: ["org_id"];
|
|
387
412
|
},
|
|
388
413
|
{
|
|
389
|
-
foreignKeyName:
|
|
390
|
-
columns: [
|
|
414
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
415
|
+
columns: ["org_id"];
|
|
391
416
|
isOneToOne: false;
|
|
392
|
-
referencedRelation:
|
|
393
|
-
referencedColumns: [
|
|
417
|
+
referencedRelation: "view_org";
|
|
418
|
+
referencedColumns: ["org_id"];
|
|
394
419
|
}
|
|
395
420
|
];
|
|
396
421
|
};
|
|
@@ -436,18 +461,18 @@ export type Database = {
|
|
|
436
461
|
};
|
|
437
462
|
Relationships: [
|
|
438
463
|
{
|
|
439
|
-
foreignKeyName:
|
|
440
|
-
columns: [
|
|
464
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
465
|
+
columns: ["org_id"];
|
|
441
466
|
isOneToOne: false;
|
|
442
|
-
referencedRelation:
|
|
443
|
-
referencedColumns: [
|
|
467
|
+
referencedRelation: "tbl_org";
|
|
468
|
+
referencedColumns: ["org_id"];
|
|
444
469
|
},
|
|
445
470
|
{
|
|
446
|
-
foreignKeyName:
|
|
447
|
-
columns: [
|
|
471
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
472
|
+
columns: ["org_id"];
|
|
448
473
|
isOneToOne: false;
|
|
449
|
-
referencedRelation:
|
|
450
|
-
referencedColumns: [
|
|
474
|
+
referencedRelation: "view_org";
|
|
475
|
+
referencedColumns: ["org_id"];
|
|
451
476
|
}
|
|
452
477
|
];
|
|
453
478
|
};
|
|
@@ -804,7 +829,7 @@ export type Database = {
|
|
|
804
829
|
quoted_message_id: string | null;
|
|
805
830
|
raised_by: string | null;
|
|
806
831
|
response_time: number | null;
|
|
807
|
-
status: Database[
|
|
832
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
808
833
|
subject: string;
|
|
809
834
|
ticket_id: string;
|
|
810
835
|
zohodesk_metadata: Json | null;
|
|
@@ -828,7 +853,7 @@ export type Database = {
|
|
|
828
853
|
quoted_message_id?: string | null;
|
|
829
854
|
raised_by?: string | null;
|
|
830
855
|
response_time?: number | null;
|
|
831
|
-
status?: Database[
|
|
856
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
832
857
|
subject: string;
|
|
833
858
|
ticket_id?: string;
|
|
834
859
|
zohodesk_metadata?: Json | null;
|
|
@@ -852,25 +877,25 @@ export type Database = {
|
|
|
852
877
|
quoted_message_id?: string | null;
|
|
853
878
|
raised_by?: string | null;
|
|
854
879
|
response_time?: number | null;
|
|
855
|
-
status?: Database[
|
|
880
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
856
881
|
subject?: string;
|
|
857
882
|
ticket_id?: string;
|
|
858
883
|
zohodesk_metadata?: Json | null;
|
|
859
884
|
};
|
|
860
885
|
Relationships: [
|
|
861
886
|
{
|
|
862
|
-
foreignKeyName:
|
|
863
|
-
columns: [
|
|
887
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
888
|
+
columns: ["org_id"];
|
|
864
889
|
isOneToOne: false;
|
|
865
|
-
referencedRelation:
|
|
866
|
-
referencedColumns: [
|
|
890
|
+
referencedRelation: "tbl_org";
|
|
891
|
+
referencedColumns: ["org_id"];
|
|
867
892
|
},
|
|
868
893
|
{
|
|
869
|
-
foreignKeyName:
|
|
870
|
-
columns: [
|
|
894
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
895
|
+
columns: ["org_id"];
|
|
871
896
|
isOneToOne: false;
|
|
872
|
-
referencedRelation:
|
|
873
|
-
referencedColumns: [
|
|
897
|
+
referencedRelation: "view_org";
|
|
898
|
+
referencedColumns: ["org_id"];
|
|
874
899
|
}
|
|
875
900
|
];
|
|
876
901
|
};
|
|
@@ -955,7 +980,7 @@ export type Database = {
|
|
|
955
980
|
tbl_contacts: {
|
|
956
981
|
Row: {
|
|
957
982
|
business_profile: Json | null;
|
|
958
|
-
contact_color: Database[
|
|
983
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
959
984
|
contact_id: string;
|
|
960
985
|
contact_image: string | null;
|
|
961
986
|
contact_name: string | null;
|
|
@@ -984,7 +1009,7 @@ export type Database = {
|
|
|
984
1009
|
};
|
|
985
1010
|
Insert: {
|
|
986
1011
|
business_profile?: Json | null;
|
|
987
|
-
contact_color?: Database[
|
|
1012
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
988
1013
|
contact_id: string;
|
|
989
1014
|
contact_image?: string | null;
|
|
990
1015
|
contact_name?: string | null;
|
|
@@ -1013,7 +1038,7 @@ export type Database = {
|
|
|
1013
1038
|
};
|
|
1014
1039
|
Update: {
|
|
1015
1040
|
business_profile?: Json | null;
|
|
1016
|
-
contact_color?: Database[
|
|
1041
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
1017
1042
|
contact_id?: string;
|
|
1018
1043
|
contact_image?: string | null;
|
|
1019
1044
|
contact_name?: string | null;
|
|
@@ -1042,18 +1067,18 @@ export type Database = {
|
|
|
1042
1067
|
};
|
|
1043
1068
|
Relationships: [
|
|
1044
1069
|
{
|
|
1045
|
-
foreignKeyName:
|
|
1046
|
-
columns: [
|
|
1070
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1071
|
+
columns: ["org_id"];
|
|
1047
1072
|
isOneToOne: false;
|
|
1048
|
-
referencedRelation:
|
|
1049
|
-
referencedColumns: [
|
|
1073
|
+
referencedRelation: "tbl_org";
|
|
1074
|
+
referencedColumns: ["org_id"];
|
|
1050
1075
|
},
|
|
1051
1076
|
{
|
|
1052
|
-
foreignKeyName:
|
|
1053
|
-
columns: [
|
|
1077
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1078
|
+
columns: ["org_id"];
|
|
1054
1079
|
isOneToOne: false;
|
|
1055
|
-
referencedRelation:
|
|
1056
|
-
referencedColumns: [
|
|
1080
|
+
referencedRelation: "view_org";
|
|
1081
|
+
referencedColumns: ["org_id"];
|
|
1057
1082
|
}
|
|
1058
1083
|
];
|
|
1059
1084
|
};
|
|
@@ -1090,18 +1115,18 @@ export type Database = {
|
|
|
1090
1115
|
};
|
|
1091
1116
|
Relationships: [
|
|
1092
1117
|
{
|
|
1093
|
-
foreignKeyName:
|
|
1094
|
-
columns: [
|
|
1118
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1119
|
+
columns: ["org_id"];
|
|
1095
1120
|
isOneToOne: false;
|
|
1096
|
-
referencedRelation:
|
|
1097
|
-
referencedColumns: [
|
|
1121
|
+
referencedRelation: "tbl_org";
|
|
1122
|
+
referencedColumns: ["org_id"];
|
|
1098
1123
|
},
|
|
1099
1124
|
{
|
|
1100
|
-
foreignKeyName:
|
|
1101
|
-
columns: [
|
|
1125
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1126
|
+
columns: ["org_id"];
|
|
1102
1127
|
isOneToOne: false;
|
|
1103
|
-
referencedRelation:
|
|
1104
|
-
referencedColumns: [
|
|
1128
|
+
referencedRelation: "view_org";
|
|
1129
|
+
referencedColumns: ["org_id"];
|
|
1105
1130
|
}
|
|
1106
1131
|
];
|
|
1107
1132
|
};
|
|
@@ -1111,51 +1136,51 @@ export type Database = {
|
|
|
1111
1136
|
id: string;
|
|
1112
1137
|
integration_id: string | null;
|
|
1113
1138
|
integration_metadata: Json;
|
|
1114
|
-
integration_name: Database[
|
|
1139
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1115
1140
|
integration_type: string;
|
|
1116
1141
|
is_subscribed: boolean;
|
|
1117
1142
|
org_id: string;
|
|
1118
1143
|
subscribed_at: string;
|
|
1119
|
-
type: Database[
|
|
1144
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1120
1145
|
};
|
|
1121
1146
|
Insert: {
|
|
1122
1147
|
hook_url: string;
|
|
1123
1148
|
id?: string;
|
|
1124
1149
|
integration_id?: string | null;
|
|
1125
1150
|
integration_metadata: Json;
|
|
1126
|
-
integration_name: Database[
|
|
1151
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1127
1152
|
integration_type: string;
|
|
1128
1153
|
is_subscribed: boolean;
|
|
1129
1154
|
org_id: string;
|
|
1130
1155
|
subscribed_at?: string;
|
|
1131
|
-
type: Database[
|
|
1156
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1132
1157
|
};
|
|
1133
1158
|
Update: {
|
|
1134
1159
|
hook_url?: string;
|
|
1135
1160
|
id?: string;
|
|
1136
1161
|
integration_id?: string | null;
|
|
1137
1162
|
integration_metadata?: Json;
|
|
1138
|
-
integration_name?: Database[
|
|
1163
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1139
1164
|
integration_type?: string;
|
|
1140
1165
|
is_subscribed?: boolean;
|
|
1141
1166
|
org_id?: string;
|
|
1142
1167
|
subscribed_at?: string;
|
|
1143
|
-
type?: Database[
|
|
1168
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1144
1169
|
};
|
|
1145
1170
|
Relationships: [
|
|
1146
1171
|
{
|
|
1147
|
-
foreignKeyName:
|
|
1148
|
-
columns: [
|
|
1172
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1173
|
+
columns: ["org_id"];
|
|
1149
1174
|
isOneToOne: false;
|
|
1150
|
-
referencedRelation:
|
|
1151
|
-
referencedColumns: [
|
|
1175
|
+
referencedRelation: "tbl_org";
|
|
1176
|
+
referencedColumns: ["org_id"];
|
|
1152
1177
|
},
|
|
1153
1178
|
{
|
|
1154
|
-
foreignKeyName:
|
|
1155
|
-
columns: [
|
|
1179
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1180
|
+
columns: ["org_id"];
|
|
1156
1181
|
isOneToOne: false;
|
|
1157
|
-
referencedRelation:
|
|
1158
|
-
referencedColumns: [
|
|
1182
|
+
referencedRelation: "view_org";
|
|
1183
|
+
referencedColumns: ["org_id"];
|
|
1159
1184
|
}
|
|
1160
1185
|
];
|
|
1161
1186
|
};
|
|
@@ -1163,50 +1188,50 @@ export type Database = {
|
|
|
1163
1188
|
Row: {
|
|
1164
1189
|
created_at: string;
|
|
1165
1190
|
id: string;
|
|
1166
|
-
integration_name: Database[
|
|
1191
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1167
1192
|
integration_type: string;
|
|
1168
1193
|
metadata: Json;
|
|
1169
1194
|
org_id: string;
|
|
1170
1195
|
response: Json | null;
|
|
1171
1196
|
success: boolean;
|
|
1172
|
-
type: Database[
|
|
1197
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1173
1198
|
};
|
|
1174
1199
|
Insert: {
|
|
1175
1200
|
created_at?: string;
|
|
1176
1201
|
id?: string;
|
|
1177
|
-
integration_name: Database[
|
|
1202
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1178
1203
|
integration_type: string;
|
|
1179
1204
|
metadata?: Json;
|
|
1180
1205
|
org_id: string;
|
|
1181
1206
|
response?: Json | null;
|
|
1182
1207
|
success?: boolean;
|
|
1183
|
-
type: Database[
|
|
1208
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1184
1209
|
};
|
|
1185
1210
|
Update: {
|
|
1186
1211
|
created_at?: string;
|
|
1187
1212
|
id?: string;
|
|
1188
|
-
integration_name?: Database[
|
|
1213
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1189
1214
|
integration_type?: string;
|
|
1190
1215
|
metadata?: Json;
|
|
1191
1216
|
org_id?: string;
|
|
1192
1217
|
response?: Json | null;
|
|
1193
1218
|
success?: boolean;
|
|
1194
|
-
type?: Database[
|
|
1219
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1195
1220
|
};
|
|
1196
1221
|
Relationships: [
|
|
1197
1222
|
{
|
|
1198
|
-
foreignKeyName:
|
|
1199
|
-
columns: [
|
|
1223
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1224
|
+
columns: ["org_id"];
|
|
1200
1225
|
isOneToOne: false;
|
|
1201
|
-
referencedRelation:
|
|
1202
|
-
referencedColumns: [
|
|
1226
|
+
referencedRelation: "tbl_org";
|
|
1227
|
+
referencedColumns: ["org_id"];
|
|
1203
1228
|
},
|
|
1204
1229
|
{
|
|
1205
|
-
foreignKeyName:
|
|
1206
|
-
columns: [
|
|
1230
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1231
|
+
columns: ["org_id"];
|
|
1207
1232
|
isOneToOne: false;
|
|
1208
|
-
referencedRelation:
|
|
1209
|
-
referencedColumns: [
|
|
1233
|
+
referencedRelation: "view_org";
|
|
1234
|
+
referencedColumns: ["org_id"];
|
|
1210
1235
|
}
|
|
1211
1236
|
];
|
|
1212
1237
|
};
|
|
@@ -1221,7 +1246,7 @@ export type Database = {
|
|
|
1221
1246
|
role: string;
|
|
1222
1247
|
token: string;
|
|
1223
1248
|
token_metadata: Json | null;
|
|
1224
|
-
type: Database[
|
|
1249
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1225
1250
|
};
|
|
1226
1251
|
Insert: {
|
|
1227
1252
|
exp: string;
|
|
@@ -1233,7 +1258,7 @@ export type Database = {
|
|
|
1233
1258
|
role: string;
|
|
1234
1259
|
token: string;
|
|
1235
1260
|
token_metadata?: Json | null;
|
|
1236
|
-
type: Database[
|
|
1261
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1237
1262
|
};
|
|
1238
1263
|
Update: {
|
|
1239
1264
|
exp?: string;
|
|
@@ -1245,22 +1270,22 @@ export type Database = {
|
|
|
1245
1270
|
role?: string;
|
|
1246
1271
|
token?: string;
|
|
1247
1272
|
token_metadata?: Json | null;
|
|
1248
|
-
type?: Database[
|
|
1273
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1249
1274
|
};
|
|
1250
1275
|
Relationships: [
|
|
1251
1276
|
{
|
|
1252
|
-
foreignKeyName:
|
|
1253
|
-
columns: [
|
|
1277
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1278
|
+
columns: ["org_id"];
|
|
1254
1279
|
isOneToOne: false;
|
|
1255
|
-
referencedRelation:
|
|
1256
|
-
referencedColumns: [
|
|
1280
|
+
referencedRelation: "tbl_org";
|
|
1281
|
+
referencedColumns: ["org_id"];
|
|
1257
1282
|
},
|
|
1258
1283
|
{
|
|
1259
|
-
foreignKeyName:
|
|
1260
|
-
columns: [
|
|
1284
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1285
|
+
columns: ["org_id"];
|
|
1261
1286
|
isOneToOne: false;
|
|
1262
|
-
referencedRelation:
|
|
1263
|
-
referencedColumns: [
|
|
1287
|
+
referencedRelation: "view_org";
|
|
1288
|
+
referencedColumns: ["org_id"];
|
|
1264
1289
|
}
|
|
1265
1290
|
];
|
|
1266
1291
|
};
|
|
@@ -1330,18 +1355,18 @@ export type Database = {
|
|
|
1330
1355
|
};
|
|
1331
1356
|
Relationships: [
|
|
1332
1357
|
{
|
|
1333
|
-
foreignKeyName:
|
|
1334
|
-
columns: [
|
|
1358
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1359
|
+
columns: ["org_id"];
|
|
1335
1360
|
isOneToOne: false;
|
|
1336
|
-
referencedRelation:
|
|
1337
|
-
referencedColumns: [
|
|
1361
|
+
referencedRelation: "tbl_org";
|
|
1362
|
+
referencedColumns: ["org_id"];
|
|
1338
1363
|
},
|
|
1339
1364
|
{
|
|
1340
|
-
foreignKeyName:
|
|
1341
|
-
columns: [
|
|
1365
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1366
|
+
columns: ["org_id"];
|
|
1342
1367
|
isOneToOne: false;
|
|
1343
|
-
referencedRelation:
|
|
1344
|
-
referencedColumns: [
|
|
1368
|
+
referencedRelation: "view_org";
|
|
1369
|
+
referencedColumns: ["org_id"];
|
|
1345
1370
|
}
|
|
1346
1371
|
];
|
|
1347
1372
|
};
|
|
@@ -1354,13 +1379,13 @@ export type Database = {
|
|
|
1354
1379
|
is_active: boolean;
|
|
1355
1380
|
is_owner: boolean | null;
|
|
1356
1381
|
label_ids: string[] | null;
|
|
1357
|
-
member_color: Database[
|
|
1382
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1358
1383
|
member_image: string | null;
|
|
1359
1384
|
member_name: string | null;
|
|
1360
1385
|
org_id: string;
|
|
1361
1386
|
org_phones: string[] | null;
|
|
1362
1387
|
preferences: Json;
|
|
1363
|
-
role: Database[
|
|
1388
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1364
1389
|
user_id: string | null;
|
|
1365
1390
|
};
|
|
1366
1391
|
Insert: {
|
|
@@ -1371,13 +1396,13 @@ export type Database = {
|
|
|
1371
1396
|
is_active?: boolean;
|
|
1372
1397
|
is_owner?: boolean | null;
|
|
1373
1398
|
label_ids?: string[] | null;
|
|
1374
|
-
member_color?: Database[
|
|
1399
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1375
1400
|
member_image?: string | null;
|
|
1376
1401
|
member_name?: string | null;
|
|
1377
1402
|
org_id: string;
|
|
1378
1403
|
org_phones?: string[] | null;
|
|
1379
1404
|
preferences?: Json;
|
|
1380
|
-
role?: Database[
|
|
1405
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1381
1406
|
user_id?: string | null;
|
|
1382
1407
|
};
|
|
1383
1408
|
Update: {
|
|
@@ -1388,36 +1413,36 @@ export type Database = {
|
|
|
1388
1413
|
is_active?: boolean;
|
|
1389
1414
|
is_owner?: boolean | null;
|
|
1390
1415
|
label_ids?: string[] | null;
|
|
1391
|
-
member_color?: Database[
|
|
1416
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1392
1417
|
member_image?: string | null;
|
|
1393
1418
|
member_name?: string | null;
|
|
1394
1419
|
org_id?: string;
|
|
1395
1420
|
org_phones?: string[] | null;
|
|
1396
1421
|
preferences?: Json;
|
|
1397
|
-
role?: Database[
|
|
1422
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1398
1423
|
user_id?: string | null;
|
|
1399
1424
|
};
|
|
1400
1425
|
Relationships: [
|
|
1401
1426
|
{
|
|
1402
|
-
foreignKeyName:
|
|
1403
|
-
columns: [
|
|
1427
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1428
|
+
columns: ["user_id"];
|
|
1404
1429
|
isOneToOne: false;
|
|
1405
|
-
referencedRelation:
|
|
1406
|
-
referencedColumns: [
|
|
1430
|
+
referencedRelation: "users";
|
|
1431
|
+
referencedColumns: ["id"];
|
|
1407
1432
|
},
|
|
1408
1433
|
{
|
|
1409
|
-
foreignKeyName:
|
|
1410
|
-
columns: [
|
|
1434
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1435
|
+
columns: ["org_id"];
|
|
1411
1436
|
isOneToOne: false;
|
|
1412
|
-
referencedRelation:
|
|
1413
|
-
referencedColumns: [
|
|
1437
|
+
referencedRelation: "tbl_org";
|
|
1438
|
+
referencedColumns: ["org_id"];
|
|
1414
1439
|
},
|
|
1415
1440
|
{
|
|
1416
|
-
foreignKeyName:
|
|
1417
|
-
columns: [
|
|
1441
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1442
|
+
columns: ["org_id"];
|
|
1418
1443
|
isOneToOne: false;
|
|
1419
|
-
referencedRelation:
|
|
1420
|
-
referencedColumns: [
|
|
1444
|
+
referencedRelation: "view_org";
|
|
1445
|
+
referencedColumns: ["org_id"];
|
|
1421
1446
|
}
|
|
1422
1447
|
];
|
|
1423
1448
|
};
|
|
@@ -1487,32 +1512,32 @@ export type Database = {
|
|
|
1487
1512
|
};
|
|
1488
1513
|
Relationships: [
|
|
1489
1514
|
{
|
|
1490
|
-
foreignKeyName:
|
|
1491
|
-
columns: [
|
|
1515
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1516
|
+
columns: ["org_id"];
|
|
1492
1517
|
isOneToOne: false;
|
|
1493
|
-
referencedRelation:
|
|
1494
|
-
referencedColumns: [
|
|
1518
|
+
referencedRelation: "tbl_org";
|
|
1519
|
+
referencedColumns: ["org_id"];
|
|
1495
1520
|
},
|
|
1496
1521
|
{
|
|
1497
|
-
foreignKeyName:
|
|
1498
|
-
columns: [
|
|
1522
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1523
|
+
columns: ["org_id"];
|
|
1499
1524
|
isOneToOne: false;
|
|
1500
|
-
referencedRelation:
|
|
1501
|
-
referencedColumns: [
|
|
1525
|
+
referencedRelation: "view_org";
|
|
1526
|
+
referencedColumns: ["org_id"];
|
|
1502
1527
|
},
|
|
1503
1528
|
{
|
|
1504
|
-
foreignKeyName:
|
|
1505
|
-
columns: [
|
|
1529
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1530
|
+
columns: ["org_id"];
|
|
1506
1531
|
isOneToOne: false;
|
|
1507
|
-
referencedRelation:
|
|
1508
|
-
referencedColumns: [
|
|
1532
|
+
referencedRelation: "tbl_org";
|
|
1533
|
+
referencedColumns: ["org_id"];
|
|
1509
1534
|
},
|
|
1510
1535
|
{
|
|
1511
|
-
foreignKeyName:
|
|
1512
|
-
columns: [
|
|
1536
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1537
|
+
columns: ["org_id"];
|
|
1513
1538
|
isOneToOne: false;
|
|
1514
|
-
referencedRelation:
|
|
1515
|
-
referencedColumns: [
|
|
1539
|
+
referencedRelation: "view_org";
|
|
1540
|
+
referencedColumns: ["org_id"];
|
|
1516
1541
|
}
|
|
1517
1542
|
];
|
|
1518
1543
|
};
|
|
@@ -1524,7 +1549,7 @@ export type Database = {
|
|
|
1524
1549
|
timestamp: string | null;
|
|
1525
1550
|
transaction_id: string;
|
|
1526
1551
|
transaction_metadata: Json | null;
|
|
1527
|
-
transaction_type: Database[
|
|
1552
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1528
1553
|
usage_metadata: Json | null;
|
|
1529
1554
|
};
|
|
1530
1555
|
Insert: {
|
|
@@ -1534,7 +1559,7 @@ export type Database = {
|
|
|
1534
1559
|
timestamp?: string | null;
|
|
1535
1560
|
transaction_id?: string;
|
|
1536
1561
|
transaction_metadata?: Json | null;
|
|
1537
|
-
transaction_type: Database[
|
|
1562
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1538
1563
|
usage_metadata?: Json | null;
|
|
1539
1564
|
};
|
|
1540
1565
|
Update: {
|
|
@@ -1544,10 +1569,25 @@ export type Database = {
|
|
|
1544
1569
|
timestamp?: string | null;
|
|
1545
1570
|
transaction_id?: string;
|
|
1546
1571
|
transaction_metadata?: Json | null;
|
|
1547
|
-
transaction_type?: Database[
|
|
1572
|
+
transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1548
1573
|
usage_metadata?: Json | null;
|
|
1549
1574
|
};
|
|
1550
|
-
Relationships: [
|
|
1575
|
+
Relationships: [
|
|
1576
|
+
{
|
|
1577
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
1578
|
+
columns: ["org_id"];
|
|
1579
|
+
isOneToOne: false;
|
|
1580
|
+
referencedRelation: "tbl_org";
|
|
1581
|
+
referencedColumns: ["org_id"];
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
1585
|
+
columns: ["org_id"];
|
|
1586
|
+
isOneToOne: false;
|
|
1587
|
+
referencedRelation: "view_org";
|
|
1588
|
+
referencedColumns: ["org_id"];
|
|
1589
|
+
}
|
|
1590
|
+
];
|
|
1551
1591
|
};
|
|
1552
1592
|
tbl_quick_replies: {
|
|
1553
1593
|
Row: {
|
|
@@ -1573,18 +1613,18 @@ export type Database = {
|
|
|
1573
1613
|
};
|
|
1574
1614
|
Relationships: [
|
|
1575
1615
|
{
|
|
1576
|
-
foreignKeyName:
|
|
1577
|
-
columns: [
|
|
1616
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1617
|
+
columns: ["org_id"];
|
|
1578
1618
|
isOneToOne: false;
|
|
1579
|
-
referencedRelation:
|
|
1580
|
-
referencedColumns: [
|
|
1619
|
+
referencedRelation: "tbl_org";
|
|
1620
|
+
referencedColumns: ["org_id"];
|
|
1581
1621
|
},
|
|
1582
1622
|
{
|
|
1583
|
-
foreignKeyName:
|
|
1584
|
-
columns: [
|
|
1623
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1624
|
+
columns: ["org_id"];
|
|
1585
1625
|
isOneToOne: false;
|
|
1586
|
-
referencedRelation:
|
|
1587
|
-
referencedColumns: [
|
|
1626
|
+
referencedRelation: "view_org";
|
|
1627
|
+
referencedColumns: ["org_id"];
|
|
1588
1628
|
}
|
|
1589
1629
|
];
|
|
1590
1630
|
};
|
|
@@ -1630,18 +1670,18 @@ export type Database = {
|
|
|
1630
1670
|
};
|
|
1631
1671
|
Relationships: [
|
|
1632
1672
|
{
|
|
1633
|
-
foreignKeyName:
|
|
1634
|
-
columns: [
|
|
1673
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey";
|
|
1674
|
+
columns: ["org_id"];
|
|
1635
1675
|
isOneToOne: false;
|
|
1636
|
-
referencedRelation:
|
|
1637
|
-
referencedColumns: [
|
|
1676
|
+
referencedRelation: "tbl_org";
|
|
1677
|
+
referencedColumns: ["org_id"];
|
|
1638
1678
|
},
|
|
1639
1679
|
{
|
|
1640
|
-
foreignKeyName:
|
|
1641
|
-
columns: [
|
|
1680
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey";
|
|
1681
|
+
columns: ["org_id"];
|
|
1642
1682
|
isOneToOne: false;
|
|
1643
|
-
referencedRelation:
|
|
1644
|
-
referencedColumns: [
|
|
1683
|
+
referencedRelation: "view_org";
|
|
1684
|
+
referencedColumns: ["org_id"];
|
|
1645
1685
|
}
|
|
1646
1686
|
];
|
|
1647
1687
|
};
|
|
@@ -1674,7 +1714,7 @@ export type Database = {
|
|
|
1674
1714
|
view_broadcast_logs: {
|
|
1675
1715
|
Row: {
|
|
1676
1716
|
broadcast_id: string | null;
|
|
1677
|
-
broadcast_status: Database[
|
|
1717
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1678
1718
|
created_at: string | null;
|
|
1679
1719
|
delivered_percentage: number | null;
|
|
1680
1720
|
failed_chats: number | null;
|
|
@@ -1693,18 +1733,18 @@ export type Database = {
|
|
|
1693
1733
|
};
|
|
1694
1734
|
Relationships: [
|
|
1695
1735
|
{
|
|
1696
|
-
foreignKeyName:
|
|
1697
|
-
columns: [
|
|
1736
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1737
|
+
columns: ["org_id"];
|
|
1698
1738
|
isOneToOne: false;
|
|
1699
|
-
referencedRelation:
|
|
1700
|
-
referencedColumns: [
|
|
1739
|
+
referencedRelation: "tbl_org";
|
|
1740
|
+
referencedColumns: ["org_id"];
|
|
1701
1741
|
},
|
|
1702
1742
|
{
|
|
1703
|
-
foreignKeyName:
|
|
1704
|
-
columns: [
|
|
1743
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1744
|
+
columns: ["org_id"];
|
|
1705
1745
|
isOneToOne: false;
|
|
1706
|
-
referencedRelation:
|
|
1707
|
-
referencedColumns: [
|
|
1746
|
+
referencedRelation: "view_org";
|
|
1747
|
+
referencedColumns: ["org_id"];
|
|
1708
1748
|
}
|
|
1709
1749
|
];
|
|
1710
1750
|
};
|
|
@@ -1724,18 +1764,18 @@ export type Database = {
|
|
|
1724
1764
|
};
|
|
1725
1765
|
Relationships: [
|
|
1726
1766
|
{
|
|
1727
|
-
foreignKeyName:
|
|
1728
|
-
columns: [
|
|
1767
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1768
|
+
columns: ["org_id"];
|
|
1729
1769
|
isOneToOne: false;
|
|
1730
|
-
referencedRelation:
|
|
1731
|
-
referencedColumns: [
|
|
1770
|
+
referencedRelation: "tbl_org";
|
|
1771
|
+
referencedColumns: ["org_id"];
|
|
1732
1772
|
},
|
|
1733
1773
|
{
|
|
1734
|
-
foreignKeyName:
|
|
1735
|
-
columns: [
|
|
1774
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1775
|
+
columns: ["org_id"];
|
|
1736
1776
|
isOneToOne: false;
|
|
1737
|
-
referencedRelation:
|
|
1738
|
-
referencedColumns: [
|
|
1777
|
+
referencedRelation: "view_org";
|
|
1778
|
+
referencedColumns: ["org_id"];
|
|
1739
1779
|
}
|
|
1740
1780
|
];
|
|
1741
1781
|
};
|
|
@@ -1888,7 +1928,7 @@ export type Database = {
|
|
|
1888
1928
|
generate_access_token: {
|
|
1889
1929
|
Args: {
|
|
1890
1930
|
name_input?: string;
|
|
1891
|
-
type_input?: Database[
|
|
1931
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1892
1932
|
org_id_input?: string;
|
|
1893
1933
|
};
|
|
1894
1934
|
Returns: Json;
|
|
@@ -1898,7 +1938,7 @@ export type Database = {
|
|
|
1898
1938
|
org_id_input?: string;
|
|
1899
1939
|
org_phone_input?: string;
|
|
1900
1940
|
token_id_input?: string;
|
|
1901
|
-
token_type_input?: Database[
|
|
1941
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1902
1942
|
};
|
|
1903
1943
|
Returns: Json;
|
|
1904
1944
|
};
|
|
@@ -1909,6 +1949,14 @@ export type Database = {
|
|
|
1909
1949
|
};
|
|
1910
1950
|
Returns: Json[];
|
|
1911
1951
|
};
|
|
1952
|
+
get_chat_rule_info: {
|
|
1953
|
+
Args: {
|
|
1954
|
+
chat_id_input: string;
|
|
1955
|
+
org_id_input: string;
|
|
1956
|
+
org_phone_input: string;
|
|
1957
|
+
};
|
|
1958
|
+
Returns: Json;
|
|
1959
|
+
};
|
|
1912
1960
|
get_chats: {
|
|
1913
1961
|
Args: {
|
|
1914
1962
|
org_id_input: string;
|
|
@@ -1961,6 +2009,16 @@ export type Database = {
|
|
|
1961
2009
|
};
|
|
1962
2010
|
Returns: Json;
|
|
1963
2011
|
};
|
|
2012
|
+
get_message_rule_info: {
|
|
2013
|
+
Args: {
|
|
2014
|
+
message_id_input: string;
|
|
2015
|
+
chat_id_input: string;
|
|
2016
|
+
org_id_input: string;
|
|
2017
|
+
org_phone_input: string;
|
|
2018
|
+
sender_id_input: string;
|
|
2019
|
+
};
|
|
2020
|
+
Returns: Json;
|
|
2021
|
+
};
|
|
1964
2022
|
get_messages_notifications_reactions: {
|
|
1965
2023
|
Args: {
|
|
1966
2024
|
org_id_input: string;
|
|
@@ -1989,6 +2047,17 @@ export type Database = {
|
|
|
1989
2047
|
};
|
|
1990
2048
|
Returns: Json;
|
|
1991
2049
|
};
|
|
2050
|
+
get_reaction_rule_info: {
|
|
2051
|
+
Args: {
|
|
2052
|
+
reaction_id_input: string;
|
|
2053
|
+
message_id_input: string;
|
|
2054
|
+
chat_id_input: string;
|
|
2055
|
+
org_id_input: string;
|
|
2056
|
+
org_phone_input: string;
|
|
2057
|
+
sender_id_input: string;
|
|
2058
|
+
};
|
|
2059
|
+
Returns: Json;
|
|
2060
|
+
};
|
|
1992
2061
|
get_team_metrics_between_dates: {
|
|
1993
2062
|
Args: {
|
|
1994
2063
|
org_id_input: string;
|
|
@@ -2007,6 +2076,15 @@ export type Database = {
|
|
|
2007
2076
|
};
|
|
2008
2077
|
Returns: Json;
|
|
2009
2078
|
};
|
|
2079
|
+
get_ticket_rule_info: {
|
|
2080
|
+
Args: {
|
|
2081
|
+
ticket_id_input: string;
|
|
2082
|
+
unique_message_id_input: string;
|
|
2083
|
+
chat_id_input: string;
|
|
2084
|
+
org_id_input: string;
|
|
2085
|
+
};
|
|
2086
|
+
Returns: Json;
|
|
2087
|
+
};
|
|
2010
2088
|
get_universal_search_result: {
|
|
2011
2089
|
Args: {
|
|
2012
2090
|
search_category_input: string;
|
|
@@ -2032,7 +2110,7 @@ export type Database = {
|
|
|
2032
2110
|
};
|
|
2033
2111
|
list_role_from_user: {
|
|
2034
2112
|
Args: Record<PropertyKey, never>;
|
|
2035
|
-
Returns: Database[
|
|
2113
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
2036
2114
|
};
|
|
2037
2115
|
update_chat_properties: {
|
|
2038
2116
|
Args: {
|
|
@@ -2064,13 +2142,13 @@ export type Database = {
|
|
|
2064
2142
|
};
|
|
2065
2143
|
};
|
|
2066
2144
|
Enums: {
|
|
2067
|
-
enum_broadcast_status:
|
|
2068
|
-
enum_chat_colors:
|
|
2069
|
-
enum_chat_tickets_status:
|
|
2070
|
-
enum_credit_transaction_type:
|
|
2071
|
-
enum_integration_name:
|
|
2072
|
-
enum_integration_type:
|
|
2073
|
-
enum_member_role:
|
|
2145
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
2146
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2147
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2148
|
+
enum_credit_transaction_type: "credit" | "debit";
|
|
2149
|
+
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";
|
|
2150
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2151
|
+
enum_member_role: "admin" | "member";
|
|
2074
2152
|
};
|
|
2075
2153
|
CompositeTypes: {
|
|
2076
2154
|
[_ in never]: never;
|
|
@@ -2150,7 +2228,6 @@ export type Database = {
|
|
|
2150
2228
|
owner_id: string | null;
|
|
2151
2229
|
path_tokens: string[] | null;
|
|
2152
2230
|
updated_at: string | null;
|
|
2153
|
-
user_metadata: Json | null;
|
|
2154
2231
|
version: string | null;
|
|
2155
2232
|
};
|
|
2156
2233
|
Insert: {
|
|
@@ -2164,7 +2241,6 @@ export type Database = {
|
|
|
2164
2241
|
owner_id?: string | null;
|
|
2165
2242
|
path_tokens?: string[] | null;
|
|
2166
2243
|
updated_at?: string | null;
|
|
2167
|
-
user_metadata?: Json | null;
|
|
2168
2244
|
version?: string | null;
|
|
2169
2245
|
};
|
|
2170
2246
|
Update: {
|
|
@@ -2178,16 +2254,15 @@ export type Database = {
|
|
|
2178
2254
|
owner_id?: string | null;
|
|
2179
2255
|
path_tokens?: string[] | null;
|
|
2180
2256
|
updated_at?: string | null;
|
|
2181
|
-
user_metadata?: Json | null;
|
|
2182
2257
|
version?: string | null;
|
|
2183
2258
|
};
|
|
2184
2259
|
Relationships: [
|
|
2185
2260
|
{
|
|
2186
|
-
foreignKeyName:
|
|
2187
|
-
columns: [
|
|
2261
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
2262
|
+
columns: ["bucket_id"];
|
|
2188
2263
|
isOneToOne: false;
|
|
2189
|
-
referencedRelation:
|
|
2190
|
-
referencedColumns: [
|
|
2264
|
+
referencedRelation: "buckets";
|
|
2265
|
+
referencedColumns: ["id"];
|
|
2191
2266
|
}
|
|
2192
2267
|
];
|
|
2193
2268
|
};
|
|
@@ -2200,7 +2275,6 @@ export type Database = {
|
|
|
2200
2275
|
key: string;
|
|
2201
2276
|
owner_id: string | null;
|
|
2202
2277
|
upload_signature: string;
|
|
2203
|
-
user_metadata: Json | null;
|
|
2204
2278
|
version: string;
|
|
2205
2279
|
};
|
|
2206
2280
|
Insert: {
|
|
@@ -2211,7 +2285,6 @@ export type Database = {
|
|
|
2211
2285
|
key: string;
|
|
2212
2286
|
owner_id?: string | null;
|
|
2213
2287
|
upload_signature: string;
|
|
2214
|
-
user_metadata?: Json | null;
|
|
2215
2288
|
version: string;
|
|
2216
2289
|
};
|
|
2217
2290
|
Update: {
|
|
@@ -2222,16 +2295,15 @@ export type Database = {
|
|
|
2222
2295
|
key?: string;
|
|
2223
2296
|
owner_id?: string | null;
|
|
2224
2297
|
upload_signature?: string;
|
|
2225
|
-
user_metadata?: Json | null;
|
|
2226
2298
|
version?: string;
|
|
2227
2299
|
};
|
|
2228
2300
|
Relationships: [
|
|
2229
2301
|
{
|
|
2230
|
-
foreignKeyName:
|
|
2231
|
-
columns: [
|
|
2302
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
2303
|
+
columns: ["bucket_id"];
|
|
2232
2304
|
isOneToOne: false;
|
|
2233
|
-
referencedRelation:
|
|
2234
|
-
referencedColumns: [
|
|
2305
|
+
referencedRelation: "buckets";
|
|
2306
|
+
referencedColumns: ["id"];
|
|
2235
2307
|
}
|
|
2236
2308
|
];
|
|
2237
2309
|
};
|
|
@@ -2274,18 +2346,18 @@ export type Database = {
|
|
|
2274
2346
|
};
|
|
2275
2347
|
Relationships: [
|
|
2276
2348
|
{
|
|
2277
|
-
foreignKeyName:
|
|
2278
|
-
columns: [
|
|
2349
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2350
|
+
columns: ["bucket_id"];
|
|
2279
2351
|
isOneToOne: false;
|
|
2280
|
-
referencedRelation:
|
|
2281
|
-
referencedColumns: [
|
|
2352
|
+
referencedRelation: "buckets";
|
|
2353
|
+
referencedColumns: ["id"];
|
|
2282
2354
|
},
|
|
2283
2355
|
{
|
|
2284
|
-
foreignKeyName:
|
|
2285
|
-
columns: [
|
|
2356
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2357
|
+
columns: ["upload_id"];
|
|
2286
2358
|
isOneToOne: false;
|
|
2287
|
-
referencedRelation:
|
|
2288
|
-
referencedColumns: [
|
|
2359
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2360
|
+
referencedColumns: ["id"];
|
|
2289
2361
|
}
|
|
2290
2362
|
];
|
|
2291
2363
|
};
|
|
@@ -2359,10 +2431,6 @@ export type Database = {
|
|
|
2359
2431
|
updated_at: string;
|
|
2360
2432
|
}[];
|
|
2361
2433
|
};
|
|
2362
|
-
operation: {
|
|
2363
|
-
Args: Record<PropertyKey, never>;
|
|
2364
|
-
Returns: string;
|
|
2365
|
-
};
|
|
2366
2434
|
search: {
|
|
2367
2435
|
Args: {
|
|
2368
2436
|
prefix: string;
|
|
@@ -2392,45 +2460,45 @@ export type Database = {
|
|
|
2392
2460
|
};
|
|
2393
2461
|
};
|
|
2394
2462
|
};
|
|
2395
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2396
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2463
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2464
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
2397
2465
|
schema: keyof Database;
|
|
2398
2466
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2399
2467
|
schema: keyof Database;
|
|
2400
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2468
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
2401
2469
|
schema: keyof Database;
|
|
2402
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2470
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2403
2471
|
Row: infer R;
|
|
2404
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2472
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
2405
2473
|
Row: infer R;
|
|
2406
2474
|
} ? R : never : never;
|
|
2407
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2475
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2408
2476
|
schema: keyof Database;
|
|
2409
2477
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2410
2478
|
schema: keyof Database;
|
|
2411
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2479
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2412
2480
|
schema: keyof Database;
|
|
2413
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2481
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2414
2482
|
Insert: infer I;
|
|
2415
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2483
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2416
2484
|
Insert: infer I;
|
|
2417
2485
|
} ? I : never : never;
|
|
2418
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2486
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2419
2487
|
schema: keyof Database;
|
|
2420
2488
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2421
2489
|
schema: keyof Database;
|
|
2422
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2490
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2423
2491
|
schema: keyof Database;
|
|
2424
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2492
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2425
2493
|
Update: infer U;
|
|
2426
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2494
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2427
2495
|
Update: infer U;
|
|
2428
2496
|
} ? U : never : never;
|
|
2429
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2497
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2430
2498
|
schema: keyof Database;
|
|
2431
2499
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2432
2500
|
schema: keyof Database;
|
|
2433
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2501
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2434
2502
|
schema: keyof Database;
|
|
2435
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2503
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2436
2504
|
export {};
|