@periskope/types 0.6.146 → 0.6.148
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 +985 -0
- package/dist/supabase.types.d.ts +359 -242
- package/dist/types.d.ts +53 -2
- package/dist/types.js +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +1377 -0
- package/supabase.types.ts +2655 -2540
- package/types.ts +761 -593
package/dist/supabase.types.d.ts
CHANGED
|
@@ -85,6 +85,42 @@ export type Database = {
|
|
|
85
85
|
};
|
|
86
86
|
Relationships: [];
|
|
87
87
|
};
|
|
88
|
+
tbl_feature_flags: {
|
|
89
|
+
Row: {
|
|
90
|
+
created_at: string | null;
|
|
91
|
+
enabled: boolean | null;
|
|
92
|
+
excluded_orgs: string[] | null;
|
|
93
|
+
exclusive_to_orgs: string[] | null;
|
|
94
|
+
feature: string;
|
|
95
|
+
included_orgs: string[] | null;
|
|
96
|
+
percentage: number | null;
|
|
97
|
+
plans: string[] | null;
|
|
98
|
+
start_date: string | null;
|
|
99
|
+
};
|
|
100
|
+
Insert: {
|
|
101
|
+
created_at?: string | null;
|
|
102
|
+
enabled?: boolean | null;
|
|
103
|
+
excluded_orgs?: string[] | null;
|
|
104
|
+
exclusive_to_orgs?: string[] | null;
|
|
105
|
+
feature: string;
|
|
106
|
+
included_orgs?: string[] | null;
|
|
107
|
+
percentage?: number | null;
|
|
108
|
+
plans?: string[] | null;
|
|
109
|
+
start_date?: string | null;
|
|
110
|
+
};
|
|
111
|
+
Update: {
|
|
112
|
+
created_at?: string | null;
|
|
113
|
+
enabled?: boolean | null;
|
|
114
|
+
excluded_orgs?: string[] | null;
|
|
115
|
+
exclusive_to_orgs?: string[] | null;
|
|
116
|
+
feature?: string;
|
|
117
|
+
included_orgs?: string[] | null;
|
|
118
|
+
percentage?: number | null;
|
|
119
|
+
plans?: string[] | null;
|
|
120
|
+
start_date?: string | null;
|
|
121
|
+
};
|
|
122
|
+
Relationships: [];
|
|
123
|
+
};
|
|
88
124
|
tbl_trigger_logs: {
|
|
89
125
|
Row: {
|
|
90
126
|
created_at: string;
|
|
@@ -200,18 +236,18 @@ export type Database = {
|
|
|
200
236
|
};
|
|
201
237
|
Relationships: [
|
|
202
238
|
{
|
|
203
|
-
foreignKeyName:
|
|
204
|
-
columns: [
|
|
239
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
240
|
+
columns: ["org_id"];
|
|
205
241
|
isOneToOne: false;
|
|
206
|
-
referencedRelation:
|
|
207
|
-
referencedColumns: [
|
|
242
|
+
referencedRelation: "tbl_org";
|
|
243
|
+
referencedColumns: ["org_id"];
|
|
208
244
|
},
|
|
209
245
|
{
|
|
210
|
-
foreignKeyName:
|
|
211
|
-
columns: [
|
|
246
|
+
foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
|
|
247
|
+
columns: ["org_id"];
|
|
212
248
|
isOneToOne: false;
|
|
213
|
-
referencedRelation:
|
|
214
|
-
referencedColumns: [
|
|
249
|
+
referencedRelation: "view_org";
|
|
250
|
+
referencedColumns: ["org_id"];
|
|
215
251
|
}
|
|
216
252
|
];
|
|
217
253
|
};
|
|
@@ -263,39 +299,39 @@ export type Database = {
|
|
|
263
299
|
};
|
|
264
300
|
Relationships: [
|
|
265
301
|
{
|
|
266
|
-
foreignKeyName:
|
|
267
|
-
columns: [
|
|
302
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
303
|
+
columns: ["broadcast_id"];
|
|
268
304
|
isOneToOne: false;
|
|
269
|
-
referencedRelation:
|
|
270
|
-
referencedColumns: [
|
|
305
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
306
|
+
referencedColumns: ["broadcast_id"];
|
|
271
307
|
},
|
|
272
308
|
{
|
|
273
|
-
foreignKeyName:
|
|
274
|
-
columns: [
|
|
309
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
310
|
+
columns: ["broadcast_id"];
|
|
275
311
|
isOneToOne: false;
|
|
276
|
-
referencedRelation:
|
|
277
|
-
referencedColumns: [
|
|
312
|
+
referencedRelation: "view_broadcast_logs";
|
|
313
|
+
referencedColumns: ["broadcast_id"];
|
|
278
314
|
},
|
|
279
315
|
{
|
|
280
|
-
foreignKeyName:
|
|
281
|
-
columns: [
|
|
316
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
317
|
+
columns: ["org_id"];
|
|
282
318
|
isOneToOne: false;
|
|
283
|
-
referencedRelation:
|
|
284
|
-
referencedColumns: [
|
|
319
|
+
referencedRelation: "tbl_org";
|
|
320
|
+
referencedColumns: ["org_id"];
|
|
285
321
|
},
|
|
286
322
|
{
|
|
287
|
-
foreignKeyName:
|
|
288
|
-
columns: [
|
|
323
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
324
|
+
columns: ["org_id"];
|
|
289
325
|
isOneToOne: false;
|
|
290
|
-
referencedRelation:
|
|
291
|
-
referencedColumns: [
|
|
326
|
+
referencedRelation: "view_org";
|
|
327
|
+
referencedColumns: ["org_id"];
|
|
292
328
|
}
|
|
293
329
|
];
|
|
294
330
|
};
|
|
295
331
|
tbl_broadcast_messages: {
|
|
296
332
|
Row: {
|
|
297
333
|
broadcast_id: string;
|
|
298
|
-
broadcast_status: Database[
|
|
334
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
299
335
|
chat_ids: string[] | null;
|
|
300
336
|
created_at: string;
|
|
301
337
|
message_payload: Json | null;
|
|
@@ -308,7 +344,7 @@ export type Database = {
|
|
|
308
344
|
};
|
|
309
345
|
Insert: {
|
|
310
346
|
broadcast_id?: string;
|
|
311
|
-
broadcast_status?: Database[
|
|
347
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
312
348
|
chat_ids?: string[] | null;
|
|
313
349
|
created_at?: string;
|
|
314
350
|
message_payload?: Json | null;
|
|
@@ -321,7 +357,7 @@ export type Database = {
|
|
|
321
357
|
};
|
|
322
358
|
Update: {
|
|
323
359
|
broadcast_id?: string;
|
|
324
|
-
broadcast_status?: Database[
|
|
360
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
325
361
|
chat_ids?: string[] | null;
|
|
326
362
|
created_at?: string;
|
|
327
363
|
message_payload?: Json | null;
|
|
@@ -334,18 +370,18 @@ export type Database = {
|
|
|
334
370
|
};
|
|
335
371
|
Relationships: [
|
|
336
372
|
{
|
|
337
|
-
foreignKeyName:
|
|
338
|
-
columns: [
|
|
373
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
374
|
+
columns: ["org_id"];
|
|
339
375
|
isOneToOne: false;
|
|
340
|
-
referencedRelation:
|
|
341
|
-
referencedColumns: [
|
|
376
|
+
referencedRelation: "tbl_org";
|
|
377
|
+
referencedColumns: ["org_id"];
|
|
342
378
|
},
|
|
343
379
|
{
|
|
344
|
-
foreignKeyName:
|
|
345
|
-
columns: [
|
|
380
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
381
|
+
columns: ["org_id"];
|
|
346
382
|
isOneToOne: false;
|
|
347
|
-
referencedRelation:
|
|
348
|
-
referencedColumns: [
|
|
383
|
+
referencedRelation: "view_org";
|
|
384
|
+
referencedColumns: ["org_id"];
|
|
349
385
|
}
|
|
350
386
|
];
|
|
351
387
|
};
|
|
@@ -379,18 +415,18 @@ export type Database = {
|
|
|
379
415
|
};
|
|
380
416
|
Relationships: [
|
|
381
417
|
{
|
|
382
|
-
foreignKeyName:
|
|
383
|
-
columns: [
|
|
418
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
419
|
+
columns: ["org_id"];
|
|
384
420
|
isOneToOne: false;
|
|
385
|
-
referencedRelation:
|
|
386
|
-
referencedColumns: [
|
|
421
|
+
referencedRelation: "tbl_org";
|
|
422
|
+
referencedColumns: ["org_id"];
|
|
387
423
|
},
|
|
388
424
|
{
|
|
389
|
-
foreignKeyName:
|
|
390
|
-
columns: [
|
|
425
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
426
|
+
columns: ["org_id"];
|
|
391
427
|
isOneToOne: false;
|
|
392
|
-
referencedRelation:
|
|
393
|
-
referencedColumns: [
|
|
428
|
+
referencedRelation: "view_org";
|
|
429
|
+
referencedColumns: ["org_id"];
|
|
394
430
|
}
|
|
395
431
|
];
|
|
396
432
|
};
|
|
@@ -436,18 +472,18 @@ export type Database = {
|
|
|
436
472
|
};
|
|
437
473
|
Relationships: [
|
|
438
474
|
{
|
|
439
|
-
foreignKeyName:
|
|
440
|
-
columns: [
|
|
475
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
476
|
+
columns: ["org_id"];
|
|
441
477
|
isOneToOne: false;
|
|
442
|
-
referencedRelation:
|
|
443
|
-
referencedColumns: [
|
|
478
|
+
referencedRelation: "tbl_org";
|
|
479
|
+
referencedColumns: ["org_id"];
|
|
444
480
|
},
|
|
445
481
|
{
|
|
446
|
-
foreignKeyName:
|
|
447
|
-
columns: [
|
|
482
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
483
|
+
columns: ["org_id"];
|
|
448
484
|
isOneToOne: false;
|
|
449
|
-
referencedRelation:
|
|
450
|
-
referencedColumns: [
|
|
485
|
+
referencedRelation: "view_org";
|
|
486
|
+
referencedColumns: ["org_id"];
|
|
451
487
|
}
|
|
452
488
|
];
|
|
453
489
|
};
|
|
@@ -693,39 +729,54 @@ export type Database = {
|
|
|
693
729
|
assigned_to: string | null;
|
|
694
730
|
chat_access: Json | null;
|
|
695
731
|
chat_id: string;
|
|
732
|
+
chat_image: string | null;
|
|
733
|
+
chat_name: string | null;
|
|
696
734
|
chat_org_phones: string[];
|
|
735
|
+
chat_type: string | null;
|
|
697
736
|
custom_properties: Json | null;
|
|
698
737
|
flag_count_map: Json | null;
|
|
699
738
|
hubspot_metadata: Json | null;
|
|
700
739
|
label_ids: Json | null;
|
|
740
|
+
latest_message_timestamp: string | null;
|
|
701
741
|
org_id: string;
|
|
702
742
|
unread_count: Json | null;
|
|
743
|
+
unread_count_map: Json | null;
|
|
703
744
|
updated_at: string | null;
|
|
704
745
|
};
|
|
705
746
|
Insert: {
|
|
706
747
|
assigned_to?: string | null;
|
|
707
748
|
chat_access?: Json | null;
|
|
708
749
|
chat_id: string;
|
|
750
|
+
chat_image?: string | null;
|
|
751
|
+
chat_name?: string | null;
|
|
709
752
|
chat_org_phones?: string[];
|
|
753
|
+
chat_type?: string | null;
|
|
710
754
|
custom_properties?: Json | null;
|
|
711
755
|
flag_count_map?: Json | null;
|
|
712
756
|
hubspot_metadata?: Json | null;
|
|
713
757
|
label_ids?: Json | null;
|
|
758
|
+
latest_message_timestamp?: string | null;
|
|
714
759
|
org_id: string;
|
|
715
760
|
unread_count?: Json | null;
|
|
761
|
+
unread_count_map?: Json | null;
|
|
716
762
|
updated_at?: string | null;
|
|
717
763
|
};
|
|
718
764
|
Update: {
|
|
719
765
|
assigned_to?: string | null;
|
|
720
766
|
chat_access?: Json | null;
|
|
721
767
|
chat_id?: string;
|
|
768
|
+
chat_image?: string | null;
|
|
769
|
+
chat_name?: string | null;
|
|
722
770
|
chat_org_phones?: string[];
|
|
771
|
+
chat_type?: string | null;
|
|
723
772
|
custom_properties?: Json | null;
|
|
724
773
|
flag_count_map?: Json | null;
|
|
725
774
|
hubspot_metadata?: Json | null;
|
|
726
775
|
label_ids?: Json | null;
|
|
776
|
+
latest_message_timestamp?: string | null;
|
|
727
777
|
org_id?: string;
|
|
728
778
|
unread_count?: Json | null;
|
|
779
|
+
unread_count_map?: Json | null;
|
|
729
780
|
updated_at?: string | null;
|
|
730
781
|
};
|
|
731
782
|
Relationships: [];
|
|
@@ -804,7 +855,7 @@ export type Database = {
|
|
|
804
855
|
quoted_message_id: string | null;
|
|
805
856
|
raised_by: string | null;
|
|
806
857
|
response_time: number | null;
|
|
807
|
-
status: Database[
|
|
858
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
808
859
|
subject: string;
|
|
809
860
|
ticket_id: string;
|
|
810
861
|
zohodesk_metadata: Json | null;
|
|
@@ -828,7 +879,7 @@ export type Database = {
|
|
|
828
879
|
quoted_message_id?: string | null;
|
|
829
880
|
raised_by?: string | null;
|
|
830
881
|
response_time?: number | null;
|
|
831
|
-
status?: Database[
|
|
882
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
832
883
|
subject: string;
|
|
833
884
|
ticket_id?: string;
|
|
834
885
|
zohodesk_metadata?: Json | null;
|
|
@@ -852,25 +903,25 @@ export type Database = {
|
|
|
852
903
|
quoted_message_id?: string | null;
|
|
853
904
|
raised_by?: string | null;
|
|
854
905
|
response_time?: number | null;
|
|
855
|
-
status?: Database[
|
|
906
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
856
907
|
subject?: string;
|
|
857
908
|
ticket_id?: string;
|
|
858
909
|
zohodesk_metadata?: Json | null;
|
|
859
910
|
};
|
|
860
911
|
Relationships: [
|
|
861
912
|
{
|
|
862
|
-
foreignKeyName:
|
|
863
|
-
columns: [
|
|
913
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
914
|
+
columns: ["org_id"];
|
|
864
915
|
isOneToOne: false;
|
|
865
|
-
referencedRelation:
|
|
866
|
-
referencedColumns: [
|
|
916
|
+
referencedRelation: "tbl_org";
|
|
917
|
+
referencedColumns: ["org_id"];
|
|
867
918
|
},
|
|
868
919
|
{
|
|
869
|
-
foreignKeyName:
|
|
870
|
-
columns: [
|
|
920
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
921
|
+
columns: ["org_id"];
|
|
871
922
|
isOneToOne: false;
|
|
872
|
-
referencedRelation:
|
|
873
|
-
referencedColumns: [
|
|
923
|
+
referencedRelation: "view_org";
|
|
924
|
+
referencedColumns: ["org_id"];
|
|
874
925
|
}
|
|
875
926
|
];
|
|
876
927
|
};
|
|
@@ -955,7 +1006,7 @@ export type Database = {
|
|
|
955
1006
|
tbl_contacts: {
|
|
956
1007
|
Row: {
|
|
957
1008
|
business_profile: Json | null;
|
|
958
|
-
contact_color: Database[
|
|
1009
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
959
1010
|
contact_id: string;
|
|
960
1011
|
contact_image: string | null;
|
|
961
1012
|
contact_name: string | null;
|
|
@@ -984,7 +1035,7 @@ export type Database = {
|
|
|
984
1035
|
};
|
|
985
1036
|
Insert: {
|
|
986
1037
|
business_profile?: Json | null;
|
|
987
|
-
contact_color?: Database[
|
|
1038
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
988
1039
|
contact_id: string;
|
|
989
1040
|
contact_image?: string | null;
|
|
990
1041
|
contact_name?: string | null;
|
|
@@ -1013,7 +1064,7 @@ export type Database = {
|
|
|
1013
1064
|
};
|
|
1014
1065
|
Update: {
|
|
1015
1066
|
business_profile?: Json | null;
|
|
1016
|
-
contact_color?: Database[
|
|
1067
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
1017
1068
|
contact_id?: string;
|
|
1018
1069
|
contact_image?: string | null;
|
|
1019
1070
|
contact_name?: string | null;
|
|
@@ -1042,18 +1093,18 @@ export type Database = {
|
|
|
1042
1093
|
};
|
|
1043
1094
|
Relationships: [
|
|
1044
1095
|
{
|
|
1045
|
-
foreignKeyName:
|
|
1046
|
-
columns: [
|
|
1096
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1097
|
+
columns: ["org_id"];
|
|
1047
1098
|
isOneToOne: false;
|
|
1048
|
-
referencedRelation:
|
|
1049
|
-
referencedColumns: [
|
|
1099
|
+
referencedRelation: "tbl_org";
|
|
1100
|
+
referencedColumns: ["org_id"];
|
|
1050
1101
|
},
|
|
1051
1102
|
{
|
|
1052
|
-
foreignKeyName:
|
|
1053
|
-
columns: [
|
|
1103
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1104
|
+
columns: ["org_id"];
|
|
1054
1105
|
isOneToOne: false;
|
|
1055
|
-
referencedRelation:
|
|
1056
|
-
referencedColumns: [
|
|
1106
|
+
referencedRelation: "view_org";
|
|
1107
|
+
referencedColumns: ["org_id"];
|
|
1057
1108
|
}
|
|
1058
1109
|
];
|
|
1059
1110
|
};
|
|
@@ -1090,18 +1141,18 @@ export type Database = {
|
|
|
1090
1141
|
};
|
|
1091
1142
|
Relationships: [
|
|
1092
1143
|
{
|
|
1093
|
-
foreignKeyName:
|
|
1094
|
-
columns: [
|
|
1144
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1145
|
+
columns: ["org_id"];
|
|
1095
1146
|
isOneToOne: false;
|
|
1096
|
-
referencedRelation:
|
|
1097
|
-
referencedColumns: [
|
|
1147
|
+
referencedRelation: "tbl_org";
|
|
1148
|
+
referencedColumns: ["org_id"];
|
|
1098
1149
|
},
|
|
1099
1150
|
{
|
|
1100
|
-
foreignKeyName:
|
|
1101
|
-
columns: [
|
|
1151
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1152
|
+
columns: ["org_id"];
|
|
1102
1153
|
isOneToOne: false;
|
|
1103
|
-
referencedRelation:
|
|
1104
|
-
referencedColumns: [
|
|
1154
|
+
referencedRelation: "view_org";
|
|
1155
|
+
referencedColumns: ["org_id"];
|
|
1105
1156
|
}
|
|
1106
1157
|
];
|
|
1107
1158
|
};
|
|
@@ -1111,51 +1162,51 @@ export type Database = {
|
|
|
1111
1162
|
id: string;
|
|
1112
1163
|
integration_id: string | null;
|
|
1113
1164
|
integration_metadata: Json;
|
|
1114
|
-
integration_name: Database[
|
|
1165
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1115
1166
|
integration_type: string;
|
|
1116
1167
|
is_subscribed: boolean;
|
|
1117
1168
|
org_id: string;
|
|
1118
1169
|
subscribed_at: string;
|
|
1119
|
-
type: Database[
|
|
1170
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1120
1171
|
};
|
|
1121
1172
|
Insert: {
|
|
1122
1173
|
hook_url: string;
|
|
1123
1174
|
id?: string;
|
|
1124
1175
|
integration_id?: string | null;
|
|
1125
1176
|
integration_metadata: Json;
|
|
1126
|
-
integration_name: Database[
|
|
1177
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1127
1178
|
integration_type: string;
|
|
1128
1179
|
is_subscribed: boolean;
|
|
1129
1180
|
org_id: string;
|
|
1130
1181
|
subscribed_at?: string;
|
|
1131
|
-
type: Database[
|
|
1182
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1132
1183
|
};
|
|
1133
1184
|
Update: {
|
|
1134
1185
|
hook_url?: string;
|
|
1135
1186
|
id?: string;
|
|
1136
1187
|
integration_id?: string | null;
|
|
1137
1188
|
integration_metadata?: Json;
|
|
1138
|
-
integration_name?: Database[
|
|
1189
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1139
1190
|
integration_type?: string;
|
|
1140
1191
|
is_subscribed?: boolean;
|
|
1141
1192
|
org_id?: string;
|
|
1142
1193
|
subscribed_at?: string;
|
|
1143
|
-
type?: Database[
|
|
1194
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1144
1195
|
};
|
|
1145
1196
|
Relationships: [
|
|
1146
1197
|
{
|
|
1147
|
-
foreignKeyName:
|
|
1148
|
-
columns: [
|
|
1198
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1199
|
+
columns: ["org_id"];
|
|
1149
1200
|
isOneToOne: false;
|
|
1150
|
-
referencedRelation:
|
|
1151
|
-
referencedColumns: [
|
|
1201
|
+
referencedRelation: "tbl_org";
|
|
1202
|
+
referencedColumns: ["org_id"];
|
|
1152
1203
|
},
|
|
1153
1204
|
{
|
|
1154
|
-
foreignKeyName:
|
|
1155
|
-
columns: [
|
|
1205
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1206
|
+
columns: ["org_id"];
|
|
1156
1207
|
isOneToOne: false;
|
|
1157
|
-
referencedRelation:
|
|
1158
|
-
referencedColumns: [
|
|
1208
|
+
referencedRelation: "view_org";
|
|
1209
|
+
referencedColumns: ["org_id"];
|
|
1159
1210
|
}
|
|
1160
1211
|
];
|
|
1161
1212
|
};
|
|
@@ -1163,50 +1214,50 @@ export type Database = {
|
|
|
1163
1214
|
Row: {
|
|
1164
1215
|
created_at: string;
|
|
1165
1216
|
id: string;
|
|
1166
|
-
integration_name: Database[
|
|
1217
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1167
1218
|
integration_type: string;
|
|
1168
1219
|
metadata: Json;
|
|
1169
1220
|
org_id: string;
|
|
1170
1221
|
response: Json | null;
|
|
1171
1222
|
success: boolean;
|
|
1172
|
-
type: Database[
|
|
1223
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1173
1224
|
};
|
|
1174
1225
|
Insert: {
|
|
1175
1226
|
created_at?: string;
|
|
1176
1227
|
id?: string;
|
|
1177
|
-
integration_name: Database[
|
|
1228
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1178
1229
|
integration_type: string;
|
|
1179
1230
|
metadata?: Json;
|
|
1180
1231
|
org_id: string;
|
|
1181
1232
|
response?: Json | null;
|
|
1182
1233
|
success?: boolean;
|
|
1183
|
-
type: Database[
|
|
1234
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1184
1235
|
};
|
|
1185
1236
|
Update: {
|
|
1186
1237
|
created_at?: string;
|
|
1187
1238
|
id?: string;
|
|
1188
|
-
integration_name?: Database[
|
|
1239
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1189
1240
|
integration_type?: string;
|
|
1190
1241
|
metadata?: Json;
|
|
1191
1242
|
org_id?: string;
|
|
1192
1243
|
response?: Json | null;
|
|
1193
1244
|
success?: boolean;
|
|
1194
|
-
type?: Database[
|
|
1245
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1195
1246
|
};
|
|
1196
1247
|
Relationships: [
|
|
1197
1248
|
{
|
|
1198
|
-
foreignKeyName:
|
|
1199
|
-
columns: [
|
|
1249
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1250
|
+
columns: ["org_id"];
|
|
1200
1251
|
isOneToOne: false;
|
|
1201
|
-
referencedRelation:
|
|
1202
|
-
referencedColumns: [
|
|
1252
|
+
referencedRelation: "tbl_org";
|
|
1253
|
+
referencedColumns: ["org_id"];
|
|
1203
1254
|
},
|
|
1204
1255
|
{
|
|
1205
|
-
foreignKeyName:
|
|
1206
|
-
columns: [
|
|
1256
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1257
|
+
columns: ["org_id"];
|
|
1207
1258
|
isOneToOne: false;
|
|
1208
|
-
referencedRelation:
|
|
1209
|
-
referencedColumns: [
|
|
1259
|
+
referencedRelation: "view_org";
|
|
1260
|
+
referencedColumns: ["org_id"];
|
|
1210
1261
|
}
|
|
1211
1262
|
];
|
|
1212
1263
|
};
|
|
@@ -1221,7 +1272,7 @@ export type Database = {
|
|
|
1221
1272
|
role: string;
|
|
1222
1273
|
token: string;
|
|
1223
1274
|
token_metadata: Json | null;
|
|
1224
|
-
type: Database[
|
|
1275
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1225
1276
|
};
|
|
1226
1277
|
Insert: {
|
|
1227
1278
|
exp: string;
|
|
@@ -1233,7 +1284,7 @@ export type Database = {
|
|
|
1233
1284
|
role: string;
|
|
1234
1285
|
token: string;
|
|
1235
1286
|
token_metadata?: Json | null;
|
|
1236
|
-
type: Database[
|
|
1287
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1237
1288
|
};
|
|
1238
1289
|
Update: {
|
|
1239
1290
|
exp?: string;
|
|
@@ -1245,22 +1296,22 @@ export type Database = {
|
|
|
1245
1296
|
role?: string;
|
|
1246
1297
|
token?: string;
|
|
1247
1298
|
token_metadata?: Json | null;
|
|
1248
|
-
type?: Database[
|
|
1299
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1249
1300
|
};
|
|
1250
1301
|
Relationships: [
|
|
1251
1302
|
{
|
|
1252
|
-
foreignKeyName:
|
|
1253
|
-
columns: [
|
|
1303
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1304
|
+
columns: ["org_id"];
|
|
1254
1305
|
isOneToOne: false;
|
|
1255
|
-
referencedRelation:
|
|
1256
|
-
referencedColumns: [
|
|
1306
|
+
referencedRelation: "tbl_org";
|
|
1307
|
+
referencedColumns: ["org_id"];
|
|
1257
1308
|
},
|
|
1258
1309
|
{
|
|
1259
|
-
foreignKeyName:
|
|
1260
|
-
columns: [
|
|
1310
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1311
|
+
columns: ["org_id"];
|
|
1261
1312
|
isOneToOne: false;
|
|
1262
|
-
referencedRelation:
|
|
1263
|
-
referencedColumns: [
|
|
1313
|
+
referencedRelation: "view_org";
|
|
1314
|
+
referencedColumns: ["org_id"];
|
|
1264
1315
|
}
|
|
1265
1316
|
];
|
|
1266
1317
|
};
|
|
@@ -1330,18 +1381,18 @@ export type Database = {
|
|
|
1330
1381
|
};
|
|
1331
1382
|
Relationships: [
|
|
1332
1383
|
{
|
|
1333
|
-
foreignKeyName:
|
|
1334
|
-
columns: [
|
|
1384
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1385
|
+
columns: ["org_id"];
|
|
1335
1386
|
isOneToOne: false;
|
|
1336
|
-
referencedRelation:
|
|
1337
|
-
referencedColumns: [
|
|
1387
|
+
referencedRelation: "tbl_org";
|
|
1388
|
+
referencedColumns: ["org_id"];
|
|
1338
1389
|
},
|
|
1339
1390
|
{
|
|
1340
|
-
foreignKeyName:
|
|
1341
|
-
columns: [
|
|
1391
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1392
|
+
columns: ["org_id"];
|
|
1342
1393
|
isOneToOne: false;
|
|
1343
|
-
referencedRelation:
|
|
1344
|
-
referencedColumns: [
|
|
1394
|
+
referencedRelation: "view_org";
|
|
1395
|
+
referencedColumns: ["org_id"];
|
|
1345
1396
|
}
|
|
1346
1397
|
];
|
|
1347
1398
|
};
|
|
@@ -1354,13 +1405,13 @@ export type Database = {
|
|
|
1354
1405
|
is_active: boolean;
|
|
1355
1406
|
is_owner: boolean | null;
|
|
1356
1407
|
label_ids: string[] | null;
|
|
1357
|
-
member_color: Database[
|
|
1408
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1358
1409
|
member_image: string | null;
|
|
1359
1410
|
member_name: string | null;
|
|
1360
1411
|
org_id: string;
|
|
1361
1412
|
org_phones: string[] | null;
|
|
1362
1413
|
preferences: Json;
|
|
1363
|
-
role: Database[
|
|
1414
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1364
1415
|
user_id: string | null;
|
|
1365
1416
|
};
|
|
1366
1417
|
Insert: {
|
|
@@ -1371,13 +1422,13 @@ export type Database = {
|
|
|
1371
1422
|
is_active?: boolean;
|
|
1372
1423
|
is_owner?: boolean | null;
|
|
1373
1424
|
label_ids?: string[] | null;
|
|
1374
|
-
member_color?: Database[
|
|
1425
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1375
1426
|
member_image?: string | null;
|
|
1376
1427
|
member_name?: string | null;
|
|
1377
1428
|
org_id: string;
|
|
1378
1429
|
org_phones?: string[] | null;
|
|
1379
1430
|
preferences?: Json;
|
|
1380
|
-
role?: Database[
|
|
1431
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1381
1432
|
user_id?: string | null;
|
|
1382
1433
|
};
|
|
1383
1434
|
Update: {
|
|
@@ -1388,36 +1439,36 @@ export type Database = {
|
|
|
1388
1439
|
is_active?: boolean;
|
|
1389
1440
|
is_owner?: boolean | null;
|
|
1390
1441
|
label_ids?: string[] | null;
|
|
1391
|
-
member_color?: Database[
|
|
1442
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1392
1443
|
member_image?: string | null;
|
|
1393
1444
|
member_name?: string | null;
|
|
1394
1445
|
org_id?: string;
|
|
1395
1446
|
org_phones?: string[] | null;
|
|
1396
1447
|
preferences?: Json;
|
|
1397
|
-
role?: Database[
|
|
1448
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1398
1449
|
user_id?: string | null;
|
|
1399
1450
|
};
|
|
1400
1451
|
Relationships: [
|
|
1401
1452
|
{
|
|
1402
|
-
foreignKeyName:
|
|
1403
|
-
columns: [
|
|
1453
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1454
|
+
columns: ["user_id"];
|
|
1404
1455
|
isOneToOne: false;
|
|
1405
|
-
referencedRelation:
|
|
1406
|
-
referencedColumns: [
|
|
1456
|
+
referencedRelation: "users";
|
|
1457
|
+
referencedColumns: ["id"];
|
|
1407
1458
|
},
|
|
1408
1459
|
{
|
|
1409
|
-
foreignKeyName:
|
|
1410
|
-
columns: [
|
|
1460
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1461
|
+
columns: ["org_id"];
|
|
1411
1462
|
isOneToOne: false;
|
|
1412
|
-
referencedRelation:
|
|
1413
|
-
referencedColumns: [
|
|
1463
|
+
referencedRelation: "tbl_org";
|
|
1464
|
+
referencedColumns: ["org_id"];
|
|
1414
1465
|
},
|
|
1415
1466
|
{
|
|
1416
|
-
foreignKeyName:
|
|
1417
|
-
columns: [
|
|
1467
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1468
|
+
columns: ["org_id"];
|
|
1418
1469
|
isOneToOne: false;
|
|
1419
|
-
referencedRelation:
|
|
1420
|
-
referencedColumns: [
|
|
1470
|
+
referencedRelation: "view_org";
|
|
1471
|
+
referencedColumns: ["org_id"];
|
|
1421
1472
|
}
|
|
1422
1473
|
];
|
|
1423
1474
|
};
|
|
@@ -1487,32 +1538,32 @@ export type Database = {
|
|
|
1487
1538
|
};
|
|
1488
1539
|
Relationships: [
|
|
1489
1540
|
{
|
|
1490
|
-
foreignKeyName:
|
|
1491
|
-
columns: [
|
|
1541
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1542
|
+
columns: ["org_id"];
|
|
1492
1543
|
isOneToOne: false;
|
|
1493
|
-
referencedRelation:
|
|
1494
|
-
referencedColumns: [
|
|
1544
|
+
referencedRelation: "tbl_org";
|
|
1545
|
+
referencedColumns: ["org_id"];
|
|
1495
1546
|
},
|
|
1496
1547
|
{
|
|
1497
|
-
foreignKeyName:
|
|
1498
|
-
columns: [
|
|
1548
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1549
|
+
columns: ["org_id"];
|
|
1499
1550
|
isOneToOne: false;
|
|
1500
|
-
referencedRelation:
|
|
1501
|
-
referencedColumns: [
|
|
1551
|
+
referencedRelation: "view_org";
|
|
1552
|
+
referencedColumns: ["org_id"];
|
|
1502
1553
|
},
|
|
1503
1554
|
{
|
|
1504
|
-
foreignKeyName:
|
|
1505
|
-
columns: [
|
|
1555
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1556
|
+
columns: ["org_id"];
|
|
1506
1557
|
isOneToOne: false;
|
|
1507
|
-
referencedRelation:
|
|
1508
|
-
referencedColumns: [
|
|
1558
|
+
referencedRelation: "tbl_org";
|
|
1559
|
+
referencedColumns: ["org_id"];
|
|
1509
1560
|
},
|
|
1510
1561
|
{
|
|
1511
|
-
foreignKeyName:
|
|
1512
|
-
columns: [
|
|
1562
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1563
|
+
columns: ["org_id"];
|
|
1513
1564
|
isOneToOne: false;
|
|
1514
|
-
referencedRelation:
|
|
1515
|
-
referencedColumns: [
|
|
1565
|
+
referencedRelation: "view_org";
|
|
1566
|
+
referencedColumns: ["org_id"];
|
|
1516
1567
|
}
|
|
1517
1568
|
];
|
|
1518
1569
|
};
|
|
@@ -1524,7 +1575,7 @@ export type Database = {
|
|
|
1524
1575
|
timestamp: string | null;
|
|
1525
1576
|
transaction_id: string;
|
|
1526
1577
|
transaction_metadata: Json | null;
|
|
1527
|
-
transaction_type: Database[
|
|
1578
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1528
1579
|
usage_metadata: Json | null;
|
|
1529
1580
|
};
|
|
1530
1581
|
Insert: {
|
|
@@ -1534,7 +1585,7 @@ export type Database = {
|
|
|
1534
1585
|
timestamp?: string | null;
|
|
1535
1586
|
transaction_id?: string;
|
|
1536
1587
|
transaction_metadata?: Json | null;
|
|
1537
|
-
transaction_type: Database[
|
|
1588
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1538
1589
|
usage_metadata?: Json | null;
|
|
1539
1590
|
};
|
|
1540
1591
|
Update: {
|
|
@@ -1544,10 +1595,25 @@ export type Database = {
|
|
|
1544
1595
|
timestamp?: string | null;
|
|
1545
1596
|
transaction_id?: string;
|
|
1546
1597
|
transaction_metadata?: Json | null;
|
|
1547
|
-
transaction_type?: Database[
|
|
1598
|
+
transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1548
1599
|
usage_metadata?: Json | null;
|
|
1549
1600
|
};
|
|
1550
|
-
Relationships: [
|
|
1601
|
+
Relationships: [
|
|
1602
|
+
{
|
|
1603
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
1604
|
+
columns: ["org_id"];
|
|
1605
|
+
isOneToOne: false;
|
|
1606
|
+
referencedRelation: "tbl_org";
|
|
1607
|
+
referencedColumns: ["org_id"];
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
1611
|
+
columns: ["org_id"];
|
|
1612
|
+
isOneToOne: false;
|
|
1613
|
+
referencedRelation: "view_org";
|
|
1614
|
+
referencedColumns: ["org_id"];
|
|
1615
|
+
}
|
|
1616
|
+
];
|
|
1551
1617
|
};
|
|
1552
1618
|
tbl_quick_replies: {
|
|
1553
1619
|
Row: {
|
|
@@ -1573,18 +1639,18 @@ export type Database = {
|
|
|
1573
1639
|
};
|
|
1574
1640
|
Relationships: [
|
|
1575
1641
|
{
|
|
1576
|
-
foreignKeyName:
|
|
1577
|
-
columns: [
|
|
1642
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1643
|
+
columns: ["org_id"];
|
|
1578
1644
|
isOneToOne: false;
|
|
1579
|
-
referencedRelation:
|
|
1580
|
-
referencedColumns: [
|
|
1645
|
+
referencedRelation: "tbl_org";
|
|
1646
|
+
referencedColumns: ["org_id"];
|
|
1581
1647
|
},
|
|
1582
1648
|
{
|
|
1583
|
-
foreignKeyName:
|
|
1584
|
-
columns: [
|
|
1649
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1650
|
+
columns: ["org_id"];
|
|
1585
1651
|
isOneToOne: false;
|
|
1586
|
-
referencedRelation:
|
|
1587
|
-
referencedColumns: [
|
|
1652
|
+
referencedRelation: "view_org";
|
|
1653
|
+
referencedColumns: ["org_id"];
|
|
1588
1654
|
}
|
|
1589
1655
|
];
|
|
1590
1656
|
};
|
|
@@ -1630,18 +1696,18 @@ export type Database = {
|
|
|
1630
1696
|
};
|
|
1631
1697
|
Relationships: [
|
|
1632
1698
|
{
|
|
1633
|
-
foreignKeyName:
|
|
1634
|
-
columns: [
|
|
1699
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey";
|
|
1700
|
+
columns: ["org_id"];
|
|
1635
1701
|
isOneToOne: false;
|
|
1636
|
-
referencedRelation:
|
|
1637
|
-
referencedColumns: [
|
|
1702
|
+
referencedRelation: "tbl_org";
|
|
1703
|
+
referencedColumns: ["org_id"];
|
|
1638
1704
|
},
|
|
1639
1705
|
{
|
|
1640
|
-
foreignKeyName:
|
|
1641
|
-
columns: [
|
|
1706
|
+
foreignKeyName: "tbl_scheduled_messages_org_id_fkey";
|
|
1707
|
+
columns: ["org_id"];
|
|
1642
1708
|
isOneToOne: false;
|
|
1643
|
-
referencedRelation:
|
|
1644
|
-
referencedColumns: [
|
|
1709
|
+
referencedRelation: "view_org";
|
|
1710
|
+
referencedColumns: ["org_id"];
|
|
1645
1711
|
}
|
|
1646
1712
|
];
|
|
1647
1713
|
};
|
|
@@ -1674,7 +1740,7 @@ export type Database = {
|
|
|
1674
1740
|
view_broadcast_logs: {
|
|
1675
1741
|
Row: {
|
|
1676
1742
|
broadcast_id: string | null;
|
|
1677
|
-
broadcast_status: Database[
|
|
1743
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1678
1744
|
created_at: string | null;
|
|
1679
1745
|
delivered_percentage: number | null;
|
|
1680
1746
|
failed_chats: number | null;
|
|
@@ -1693,18 +1759,18 @@ export type Database = {
|
|
|
1693
1759
|
};
|
|
1694
1760
|
Relationships: [
|
|
1695
1761
|
{
|
|
1696
|
-
foreignKeyName:
|
|
1697
|
-
columns: [
|
|
1762
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1763
|
+
columns: ["org_id"];
|
|
1698
1764
|
isOneToOne: false;
|
|
1699
|
-
referencedRelation:
|
|
1700
|
-
referencedColumns: [
|
|
1765
|
+
referencedRelation: "tbl_org";
|
|
1766
|
+
referencedColumns: ["org_id"];
|
|
1701
1767
|
},
|
|
1702
1768
|
{
|
|
1703
|
-
foreignKeyName:
|
|
1704
|
-
columns: [
|
|
1769
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1770
|
+
columns: ["org_id"];
|
|
1705
1771
|
isOneToOne: false;
|
|
1706
|
-
referencedRelation:
|
|
1707
|
-
referencedColumns: [
|
|
1772
|
+
referencedRelation: "view_org";
|
|
1773
|
+
referencedColumns: ["org_id"];
|
|
1708
1774
|
}
|
|
1709
1775
|
];
|
|
1710
1776
|
};
|
|
@@ -1724,18 +1790,18 @@ export type Database = {
|
|
|
1724
1790
|
};
|
|
1725
1791
|
Relationships: [
|
|
1726
1792
|
{
|
|
1727
|
-
foreignKeyName:
|
|
1728
|
-
columns: [
|
|
1793
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1794
|
+
columns: ["org_id"];
|
|
1729
1795
|
isOneToOne: false;
|
|
1730
|
-
referencedRelation:
|
|
1731
|
-
referencedColumns: [
|
|
1796
|
+
referencedRelation: "tbl_org";
|
|
1797
|
+
referencedColumns: ["org_id"];
|
|
1732
1798
|
},
|
|
1733
1799
|
{
|
|
1734
|
-
foreignKeyName:
|
|
1735
|
-
columns: [
|
|
1800
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1801
|
+
columns: ["org_id"];
|
|
1736
1802
|
isOneToOne: false;
|
|
1737
|
-
referencedRelation:
|
|
1738
|
-
referencedColumns: [
|
|
1803
|
+
referencedRelation: "view_org";
|
|
1804
|
+
referencedColumns: ["org_id"];
|
|
1739
1805
|
}
|
|
1740
1806
|
];
|
|
1741
1807
|
};
|
|
@@ -1758,7 +1824,6 @@ export type Database = {
|
|
|
1758
1824
|
is_exited: boolean | null;
|
|
1759
1825
|
is_muted: boolean | null;
|
|
1760
1826
|
label_ids: Json | null;
|
|
1761
|
-
last_read_timestamp: string | null;
|
|
1762
1827
|
latest_message: Json | null;
|
|
1763
1828
|
member_add_mode: string | null;
|
|
1764
1829
|
member_count: number | null;
|
|
@@ -1888,7 +1953,7 @@ export type Database = {
|
|
|
1888
1953
|
generate_access_token: {
|
|
1889
1954
|
Args: {
|
|
1890
1955
|
name_input?: string;
|
|
1891
|
-
type_input?: Database[
|
|
1956
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1892
1957
|
org_id_input?: string;
|
|
1893
1958
|
};
|
|
1894
1959
|
Returns: Json;
|
|
@@ -1898,7 +1963,7 @@ export type Database = {
|
|
|
1898
1963
|
org_id_input?: string;
|
|
1899
1964
|
org_phone_input?: string;
|
|
1900
1965
|
token_id_input?: string;
|
|
1901
|
-
token_type_input?: Database[
|
|
1966
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1902
1967
|
};
|
|
1903
1968
|
Returns: Json;
|
|
1904
1969
|
};
|
|
@@ -1909,6 +1974,14 @@ export type Database = {
|
|
|
1909
1974
|
};
|
|
1910
1975
|
Returns: Json[];
|
|
1911
1976
|
};
|
|
1977
|
+
get_chat_rule_info: {
|
|
1978
|
+
Args: {
|
|
1979
|
+
chat_id_input: string;
|
|
1980
|
+
org_id_input: string;
|
|
1981
|
+
org_phone_input: string;
|
|
1982
|
+
};
|
|
1983
|
+
Returns: Json;
|
|
1984
|
+
};
|
|
1912
1985
|
get_chats: {
|
|
1913
1986
|
Args: {
|
|
1914
1987
|
org_id_input: string;
|
|
@@ -1955,12 +2028,36 @@ export type Database = {
|
|
|
1955
2028
|
};
|
|
1956
2029
|
Returns: Json;
|
|
1957
2030
|
};
|
|
2031
|
+
get_feature_flags: {
|
|
2032
|
+
Args: Record<PropertyKey, never>;
|
|
2033
|
+
Returns: {
|
|
2034
|
+
feature: string;
|
|
2035
|
+
enabled: boolean;
|
|
2036
|
+
plans: string[];
|
|
2037
|
+
excluded_orgs: string[];
|
|
2038
|
+
exclusive_to_orgs: string[];
|
|
2039
|
+
included_orgs: string[];
|
|
2040
|
+
percentage: number;
|
|
2041
|
+
start_date: string;
|
|
2042
|
+
created_at: string;
|
|
2043
|
+
}[];
|
|
2044
|
+
};
|
|
1958
2045
|
get_integration_data: {
|
|
1959
2046
|
Args: {
|
|
1960
2047
|
org_id_input?: string;
|
|
1961
2048
|
};
|
|
1962
2049
|
Returns: Json;
|
|
1963
2050
|
};
|
|
2051
|
+
get_message_rule_info: {
|
|
2052
|
+
Args: {
|
|
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
|
+
};
|
|
1964
2061
|
get_messages_notifications_reactions: {
|
|
1965
2062
|
Args: {
|
|
1966
2063
|
org_id_input: string;
|
|
@@ -1989,6 +2086,17 @@ export type Database = {
|
|
|
1989
2086
|
};
|
|
1990
2087
|
Returns: Json;
|
|
1991
2088
|
};
|
|
2089
|
+
get_reaction_rule_info: {
|
|
2090
|
+
Args: {
|
|
2091
|
+
reaction_id_input: string;
|
|
2092
|
+
message_id_input: string;
|
|
2093
|
+
chat_id_input: string;
|
|
2094
|
+
org_id_input: string;
|
|
2095
|
+
org_phone_input: string;
|
|
2096
|
+
sender_id_input: string;
|
|
2097
|
+
};
|
|
2098
|
+
Returns: Json;
|
|
2099
|
+
};
|
|
1992
2100
|
get_team_metrics_between_dates: {
|
|
1993
2101
|
Args: {
|
|
1994
2102
|
org_id_input: string;
|
|
@@ -2007,6 +2115,15 @@ export type Database = {
|
|
|
2007
2115
|
};
|
|
2008
2116
|
Returns: Json;
|
|
2009
2117
|
};
|
|
2118
|
+
get_ticket_rule_info: {
|
|
2119
|
+
Args: {
|
|
2120
|
+
ticket_id_input: string;
|
|
2121
|
+
unique_message_id_input: string;
|
|
2122
|
+
chat_id_input: string;
|
|
2123
|
+
org_id_input: string;
|
|
2124
|
+
};
|
|
2125
|
+
Returns: Json;
|
|
2126
|
+
};
|
|
2010
2127
|
get_universal_search_result: {
|
|
2011
2128
|
Args: {
|
|
2012
2129
|
search_category_input: string;
|
|
@@ -2032,7 +2149,7 @@ export type Database = {
|
|
|
2032
2149
|
};
|
|
2033
2150
|
list_role_from_user: {
|
|
2034
2151
|
Args: Record<PropertyKey, never>;
|
|
2035
|
-
Returns: Database[
|
|
2152
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
2036
2153
|
};
|
|
2037
2154
|
update_chat_properties: {
|
|
2038
2155
|
Args: {
|
|
@@ -2064,13 +2181,13 @@ export type Database = {
|
|
|
2064
2181
|
};
|
|
2065
2182
|
};
|
|
2066
2183
|
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:
|
|
2184
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
2185
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2186
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2187
|
+
enum_credit_transaction_type: "credit" | "debit";
|
|
2188
|
+
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" | "message.flagged" | "message.unflagged";
|
|
2189
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2190
|
+
enum_member_role: "admin" | "member";
|
|
2074
2191
|
};
|
|
2075
2192
|
CompositeTypes: {
|
|
2076
2193
|
[_ in never]: never;
|
|
@@ -2183,11 +2300,11 @@ export type Database = {
|
|
|
2183
2300
|
};
|
|
2184
2301
|
Relationships: [
|
|
2185
2302
|
{
|
|
2186
|
-
foreignKeyName:
|
|
2187
|
-
columns: [
|
|
2303
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
2304
|
+
columns: ["bucket_id"];
|
|
2188
2305
|
isOneToOne: false;
|
|
2189
|
-
referencedRelation:
|
|
2190
|
-
referencedColumns: [
|
|
2306
|
+
referencedRelation: "buckets";
|
|
2307
|
+
referencedColumns: ["id"];
|
|
2191
2308
|
}
|
|
2192
2309
|
];
|
|
2193
2310
|
};
|
|
@@ -2227,11 +2344,11 @@ export type Database = {
|
|
|
2227
2344
|
};
|
|
2228
2345
|
Relationships: [
|
|
2229
2346
|
{
|
|
2230
|
-
foreignKeyName:
|
|
2231
|
-
columns: [
|
|
2347
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
2348
|
+
columns: ["bucket_id"];
|
|
2232
2349
|
isOneToOne: false;
|
|
2233
|
-
referencedRelation:
|
|
2234
|
-
referencedColumns: [
|
|
2350
|
+
referencedRelation: "buckets";
|
|
2351
|
+
referencedColumns: ["id"];
|
|
2235
2352
|
}
|
|
2236
2353
|
];
|
|
2237
2354
|
};
|
|
@@ -2274,18 +2391,18 @@ export type Database = {
|
|
|
2274
2391
|
};
|
|
2275
2392
|
Relationships: [
|
|
2276
2393
|
{
|
|
2277
|
-
foreignKeyName:
|
|
2278
|
-
columns: [
|
|
2394
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2395
|
+
columns: ["bucket_id"];
|
|
2279
2396
|
isOneToOne: false;
|
|
2280
|
-
referencedRelation:
|
|
2281
|
-
referencedColumns: [
|
|
2397
|
+
referencedRelation: "buckets";
|
|
2398
|
+
referencedColumns: ["id"];
|
|
2282
2399
|
},
|
|
2283
2400
|
{
|
|
2284
|
-
foreignKeyName:
|
|
2285
|
-
columns: [
|
|
2401
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2402
|
+
columns: ["upload_id"];
|
|
2286
2403
|
isOneToOne: false;
|
|
2287
|
-
referencedRelation:
|
|
2288
|
-
referencedColumns: [
|
|
2404
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2405
|
+
referencedColumns: ["id"];
|
|
2289
2406
|
}
|
|
2290
2407
|
];
|
|
2291
2408
|
};
|
|
@@ -2392,45 +2509,45 @@ export type Database = {
|
|
|
2392
2509
|
};
|
|
2393
2510
|
};
|
|
2394
2511
|
};
|
|
2395
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2396
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2512
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2513
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
2397
2514
|
schema: keyof Database;
|
|
2398
2515
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2399
2516
|
schema: keyof Database;
|
|
2400
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2517
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
2401
2518
|
schema: keyof Database;
|
|
2402
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2519
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2403
2520
|
Row: infer R;
|
|
2404
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2521
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
2405
2522
|
Row: infer R;
|
|
2406
2523
|
} ? R : never : never;
|
|
2407
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2524
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2408
2525
|
schema: keyof Database;
|
|
2409
2526
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2410
2527
|
schema: keyof Database;
|
|
2411
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2528
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2412
2529
|
schema: keyof Database;
|
|
2413
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2530
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2414
2531
|
Insert: infer I;
|
|
2415
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2532
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2416
2533
|
Insert: infer I;
|
|
2417
2534
|
} ? I : never : never;
|
|
2418
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2535
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2419
2536
|
schema: keyof Database;
|
|
2420
2537
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2421
2538
|
schema: keyof Database;
|
|
2422
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2539
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2423
2540
|
schema: keyof Database;
|
|
2424
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2541
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2425
2542
|
Update: infer U;
|
|
2426
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2543
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2427
2544
|
Update: infer U;
|
|
2428
2545
|
} ? U : never : never;
|
|
2429
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2546
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2430
2547
|
schema: keyof Database;
|
|
2431
2548
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2432
2549
|
schema: keyof Database;
|
|
2433
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2550
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2434
2551
|
schema: keyof Database;
|
|
2435
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2552
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2436
2553
|
export {};
|