@periskope/types 0.6.82 → 0.6.83
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/supabase.types.d.ts +45 -6
- package/package.json +1 -1
- package/supabase.types.ts +66 -27
package/dist/supabase.types.d.ts
CHANGED
|
@@ -76,24 +76,28 @@ export type Database = {
|
|
|
76
76
|
{
|
|
77
77
|
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
78
78
|
columns: ["broadcast_id"];
|
|
79
|
+
isOneToOne: false;
|
|
79
80
|
referencedRelation: "tbl_broadcast_messages";
|
|
80
81
|
referencedColumns: ["broadcast_id"];
|
|
81
82
|
},
|
|
82
83
|
{
|
|
83
84
|
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
84
85
|
columns: ["broadcast_id"];
|
|
86
|
+
isOneToOne: false;
|
|
85
87
|
referencedRelation: "view_broadcast_logs";
|
|
86
88
|
referencedColumns: ["broadcast_id"];
|
|
87
89
|
},
|
|
88
90
|
{
|
|
89
91
|
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
90
92
|
columns: ["org_id"];
|
|
93
|
+
isOneToOne: false;
|
|
91
94
|
referencedRelation: "tbl_org";
|
|
92
95
|
referencedColumns: ["org_id"];
|
|
93
96
|
},
|
|
94
97
|
{
|
|
95
98
|
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
96
99
|
columns: ["org_id"];
|
|
100
|
+
isOneToOne: false;
|
|
97
101
|
referencedRelation: "view_org";
|
|
98
102
|
referencedColumns: ["org_id"];
|
|
99
103
|
}
|
|
@@ -102,7 +106,6 @@ export type Database = {
|
|
|
102
106
|
tbl_broadcast_messages: {
|
|
103
107
|
Row: {
|
|
104
108
|
broadcast_id: string;
|
|
105
|
-
broadcast_status: string | null;
|
|
106
109
|
chat_ids: string[] | null;
|
|
107
110
|
created_at: string;
|
|
108
111
|
message_payload: Json | null;
|
|
@@ -113,7 +116,6 @@ export type Database = {
|
|
|
113
116
|
};
|
|
114
117
|
Insert: {
|
|
115
118
|
broadcast_id?: string;
|
|
116
|
-
broadcast_status?: string | null;
|
|
117
119
|
chat_ids?: string[] | null;
|
|
118
120
|
created_at?: string;
|
|
119
121
|
message_payload?: Json | null;
|
|
@@ -124,7 +126,6 @@ export type Database = {
|
|
|
124
126
|
};
|
|
125
127
|
Update: {
|
|
126
128
|
broadcast_id?: string;
|
|
127
|
-
broadcast_status?: string | null;
|
|
128
129
|
chat_ids?: string[] | null;
|
|
129
130
|
created_at?: string;
|
|
130
131
|
message_payload?: Json | null;
|
|
@@ -137,12 +138,14 @@ export type Database = {
|
|
|
137
138
|
{
|
|
138
139
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
139
140
|
columns: ["org_id"];
|
|
141
|
+
isOneToOne: false;
|
|
140
142
|
referencedRelation: "tbl_org";
|
|
141
143
|
referencedColumns: ["org_id"];
|
|
142
144
|
},
|
|
143
145
|
{
|
|
144
146
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
145
147
|
columns: ["org_id"];
|
|
148
|
+
isOneToOne: false;
|
|
146
149
|
referencedRelation: "view_org";
|
|
147
150
|
referencedColumns: ["org_id"];
|
|
148
151
|
}
|
|
@@ -177,12 +180,14 @@ export type Database = {
|
|
|
177
180
|
{
|
|
178
181
|
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
179
182
|
columns: ["org_id"];
|
|
183
|
+
isOneToOne: false;
|
|
180
184
|
referencedRelation: "tbl_org";
|
|
181
185
|
referencedColumns: ["org_id"];
|
|
182
186
|
},
|
|
183
187
|
{
|
|
184
188
|
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
185
189
|
columns: ["org_id"];
|
|
190
|
+
isOneToOne: false;
|
|
186
191
|
referencedRelation: "view_org";
|
|
187
192
|
referencedColumns: ["org_id"];
|
|
188
193
|
}
|
|
@@ -220,6 +225,7 @@ export type Database = {
|
|
|
220
225
|
{
|
|
221
226
|
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
222
227
|
columns: ["org_id", "email"];
|
|
228
|
+
isOneToOne: false;
|
|
223
229
|
referencedRelation: "tbl_org_members";
|
|
224
230
|
referencedColumns: ["org_id", "email"];
|
|
225
231
|
}
|
|
@@ -374,6 +380,7 @@ export type Database = {
|
|
|
374
380
|
{
|
|
375
381
|
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
376
382
|
columns: ["org_phone", "org_id"];
|
|
383
|
+
isOneToOne: false;
|
|
377
384
|
referencedRelation: "tbl_org_phones";
|
|
378
385
|
referencedColumns: ["org_phone", "org_id"];
|
|
379
386
|
}
|
|
@@ -423,6 +430,7 @@ export type Database = {
|
|
|
423
430
|
{
|
|
424
431
|
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
425
432
|
columns: ["org_id", "org_phone"];
|
|
433
|
+
isOneToOne: false;
|
|
426
434
|
referencedRelation: "tbl_org_phones";
|
|
427
435
|
referencedColumns: ["org_id", "org_phone"];
|
|
428
436
|
}
|
|
@@ -460,6 +468,7 @@ export type Database = {
|
|
|
460
468
|
{
|
|
461
469
|
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
462
470
|
columns: ["org_id", "org_phone", "chat_id"];
|
|
471
|
+
isOneToOne: false;
|
|
463
472
|
referencedRelation: "tbl_chats";
|
|
464
473
|
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
465
474
|
}
|
|
@@ -542,6 +551,7 @@ export type Database = {
|
|
|
542
551
|
{
|
|
543
552
|
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
544
553
|
columns: ["org_id", "org_phone"];
|
|
554
|
+
isOneToOne: false;
|
|
545
555
|
referencedRelation: "tbl_org_phones";
|
|
546
556
|
referencedColumns: ["org_id", "org_phone"];
|
|
547
557
|
}
|
|
@@ -603,12 +613,14 @@ export type Database = {
|
|
|
603
613
|
{
|
|
604
614
|
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
605
615
|
columns: ["org_id"];
|
|
616
|
+
isOneToOne: false;
|
|
606
617
|
referencedRelation: "tbl_org";
|
|
607
618
|
referencedColumns: ["org_id"];
|
|
608
619
|
},
|
|
609
620
|
{
|
|
610
621
|
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
611
622
|
columns: ["org_id"];
|
|
623
|
+
isOneToOne: false;
|
|
612
624
|
referencedRelation: "view_org";
|
|
613
625
|
referencedColumns: ["org_id"];
|
|
614
626
|
}
|
|
@@ -691,6 +703,7 @@ export type Database = {
|
|
|
691
703
|
{
|
|
692
704
|
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
693
705
|
columns: ["org_phone", "org_id"];
|
|
706
|
+
isOneToOne: false;
|
|
694
707
|
referencedRelation: "tbl_org_phones";
|
|
695
708
|
referencedColumns: ["org_phone", "org_id"];
|
|
696
709
|
}
|
|
@@ -782,12 +795,14 @@ export type Database = {
|
|
|
782
795
|
{
|
|
783
796
|
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
784
797
|
columns: ["org_id"];
|
|
798
|
+
isOneToOne: false;
|
|
785
799
|
referencedRelation: "tbl_org";
|
|
786
800
|
referencedColumns: ["org_id"];
|
|
787
801
|
},
|
|
788
802
|
{
|
|
789
803
|
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
790
804
|
columns: ["org_id"];
|
|
805
|
+
isOneToOne: false;
|
|
791
806
|
referencedRelation: "view_org";
|
|
792
807
|
referencedColumns: ["org_id"];
|
|
793
808
|
}
|
|
@@ -828,12 +843,14 @@ export type Database = {
|
|
|
828
843
|
{
|
|
829
844
|
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
830
845
|
columns: ["org_id"];
|
|
846
|
+
isOneToOne: false;
|
|
831
847
|
referencedRelation: "tbl_org";
|
|
832
848
|
referencedColumns: ["org_id"];
|
|
833
849
|
},
|
|
834
850
|
{
|
|
835
851
|
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
836
852
|
columns: ["org_id"];
|
|
853
|
+
isOneToOne: false;
|
|
837
854
|
referencedRelation: "view_org";
|
|
838
855
|
referencedColumns: ["org_id"];
|
|
839
856
|
}
|
|
@@ -874,12 +891,14 @@ export type Database = {
|
|
|
874
891
|
{
|
|
875
892
|
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
876
893
|
columns: ["org_id"];
|
|
894
|
+
isOneToOne: false;
|
|
877
895
|
referencedRelation: "tbl_org";
|
|
878
896
|
referencedColumns: ["org_id"];
|
|
879
897
|
},
|
|
880
898
|
{
|
|
881
899
|
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
882
900
|
columns: ["org_id"];
|
|
901
|
+
isOneToOne: false;
|
|
883
902
|
referencedRelation: "view_org";
|
|
884
903
|
referencedColumns: ["org_id"];
|
|
885
904
|
}
|
|
@@ -926,12 +945,14 @@ export type Database = {
|
|
|
926
945
|
{
|
|
927
946
|
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
928
947
|
columns: ["org_id"];
|
|
948
|
+
isOneToOne: false;
|
|
929
949
|
referencedRelation: "tbl_org";
|
|
930
950
|
referencedColumns: ["org_id"];
|
|
931
951
|
},
|
|
932
952
|
{
|
|
933
953
|
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
934
954
|
columns: ["org_id"];
|
|
955
|
+
isOneToOne: false;
|
|
935
956
|
referencedRelation: "view_org";
|
|
936
957
|
referencedColumns: ["org_id"];
|
|
937
958
|
}
|
|
@@ -975,12 +996,14 @@ export type Database = {
|
|
|
975
996
|
{
|
|
976
997
|
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
977
998
|
columns: ["org_id"];
|
|
999
|
+
isOneToOne: false;
|
|
978
1000
|
referencedRelation: "tbl_org";
|
|
979
1001
|
referencedColumns: ["org_id"];
|
|
980
1002
|
},
|
|
981
1003
|
{
|
|
982
1004
|
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
983
1005
|
columns: ["org_id"];
|
|
1006
|
+
isOneToOne: false;
|
|
984
1007
|
referencedRelation: "view_org";
|
|
985
1008
|
referencedColumns: ["org_id"];
|
|
986
1009
|
}
|
|
@@ -1024,12 +1047,14 @@ export type Database = {
|
|
|
1024
1047
|
{
|
|
1025
1048
|
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1026
1049
|
columns: ["org_id"];
|
|
1050
|
+
isOneToOne: false;
|
|
1027
1051
|
referencedRelation: "tbl_org";
|
|
1028
1052
|
referencedColumns: ["org_id"];
|
|
1029
1053
|
},
|
|
1030
1054
|
{
|
|
1031
1055
|
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1032
1056
|
columns: ["org_id"];
|
|
1057
|
+
isOneToOne: false;
|
|
1033
1058
|
referencedRelation: "view_org";
|
|
1034
1059
|
referencedColumns: ["org_id"];
|
|
1035
1060
|
}
|
|
@@ -1103,12 +1128,14 @@ export type Database = {
|
|
|
1103
1128
|
{
|
|
1104
1129
|
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1105
1130
|
columns: ["org_id"];
|
|
1131
|
+
isOneToOne: false;
|
|
1106
1132
|
referencedRelation: "tbl_org";
|
|
1107
1133
|
referencedColumns: ["org_id"];
|
|
1108
1134
|
},
|
|
1109
1135
|
{
|
|
1110
1136
|
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1111
1137
|
columns: ["org_id"];
|
|
1138
|
+
isOneToOne: false;
|
|
1112
1139
|
referencedRelation: "view_org";
|
|
1113
1140
|
referencedColumns: ["org_id"];
|
|
1114
1141
|
}
|
|
@@ -1170,18 +1197,21 @@ export type Database = {
|
|
|
1170
1197
|
{
|
|
1171
1198
|
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1172
1199
|
columns: ["user_id"];
|
|
1200
|
+
isOneToOne: false;
|
|
1173
1201
|
referencedRelation: "users";
|
|
1174
1202
|
referencedColumns: ["id"];
|
|
1175
1203
|
},
|
|
1176
1204
|
{
|
|
1177
1205
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1178
1206
|
columns: ["org_id"];
|
|
1207
|
+
isOneToOne: false;
|
|
1179
1208
|
referencedRelation: "tbl_org";
|
|
1180
1209
|
referencedColumns: ["org_id"];
|
|
1181
1210
|
},
|
|
1182
1211
|
{
|
|
1183
1212
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1184
1213
|
columns: ["org_id"];
|
|
1214
|
+
isOneToOne: false;
|
|
1185
1215
|
referencedRelation: "view_org";
|
|
1186
1216
|
referencedColumns: ["org_id"];
|
|
1187
1217
|
}
|
|
@@ -1246,24 +1276,28 @@ export type Database = {
|
|
|
1246
1276
|
{
|
|
1247
1277
|
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1248
1278
|
columns: ["org_id"];
|
|
1279
|
+
isOneToOne: false;
|
|
1249
1280
|
referencedRelation: "tbl_org";
|
|
1250
1281
|
referencedColumns: ["org_id"];
|
|
1251
1282
|
},
|
|
1252
1283
|
{
|
|
1253
1284
|
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1254
1285
|
columns: ["org_id"];
|
|
1286
|
+
isOneToOne: false;
|
|
1255
1287
|
referencedRelation: "view_org";
|
|
1256
1288
|
referencedColumns: ["org_id"];
|
|
1257
1289
|
},
|
|
1258
1290
|
{
|
|
1259
1291
|
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1260
1292
|
columns: ["org_id"];
|
|
1293
|
+
isOneToOne: false;
|
|
1261
1294
|
referencedRelation: "tbl_org";
|
|
1262
1295
|
referencedColumns: ["org_id"];
|
|
1263
1296
|
},
|
|
1264
1297
|
{
|
|
1265
1298
|
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1266
1299
|
columns: ["org_id"];
|
|
1300
|
+
isOneToOne: false;
|
|
1267
1301
|
referencedRelation: "view_org";
|
|
1268
1302
|
referencedColumns: ["org_id"];
|
|
1269
1303
|
}
|
|
@@ -1295,12 +1329,14 @@ export type Database = {
|
|
|
1295
1329
|
{
|
|
1296
1330
|
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1297
1331
|
columns: ["org_id"];
|
|
1332
|
+
isOneToOne: false;
|
|
1298
1333
|
referencedRelation: "tbl_org";
|
|
1299
1334
|
referencedColumns: ["org_id"];
|
|
1300
1335
|
},
|
|
1301
1336
|
{
|
|
1302
1337
|
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1303
1338
|
columns: ["org_id"];
|
|
1339
|
+
isOneToOne: false;
|
|
1304
1340
|
referencedRelation: "view_org";
|
|
1305
1341
|
referencedColumns: ["org_id"];
|
|
1306
1342
|
}
|
|
@@ -1355,12 +1391,14 @@ export type Database = {
|
|
|
1355
1391
|
{
|
|
1356
1392
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1357
1393
|
columns: ["org_id"];
|
|
1394
|
+
isOneToOne: false;
|
|
1358
1395
|
referencedRelation: "tbl_org";
|
|
1359
1396
|
referencedColumns: ["org_id"];
|
|
1360
1397
|
},
|
|
1361
1398
|
{
|
|
1362
1399
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1363
1400
|
columns: ["org_id"];
|
|
1401
|
+
isOneToOne: false;
|
|
1364
1402
|
referencedRelation: "view_org";
|
|
1365
1403
|
referencedColumns: ["org_id"];
|
|
1366
1404
|
}
|
|
@@ -1509,7 +1547,7 @@ export type Database = {
|
|
|
1509
1547
|
Args: {
|
|
1510
1548
|
chat_id_input: string;
|
|
1511
1549
|
org_id_input: string;
|
|
1512
|
-
org_phone_input
|
|
1550
|
+
org_phone_input: string;
|
|
1513
1551
|
};
|
|
1514
1552
|
Returns: Json;
|
|
1515
1553
|
};
|
|
@@ -1565,6 +1603,7 @@ export type Database = {
|
|
|
1565
1603
|
org_id_input?: string;
|
|
1566
1604
|
chat_id_input?: string;
|
|
1567
1605
|
unique_message_id_input?: string;
|
|
1606
|
+
org_phone_input?: string;
|
|
1568
1607
|
};
|
|
1569
1608
|
Returns: Json;
|
|
1570
1609
|
};
|
|
@@ -1572,7 +1611,6 @@ export type Database = {
|
|
|
1572
1611
|
Args: {
|
|
1573
1612
|
path_input?: string;
|
|
1574
1613
|
bucket_name?: string;
|
|
1575
|
-
req_base?: boolean;
|
|
1576
1614
|
};
|
|
1577
1615
|
Returns: string;
|
|
1578
1616
|
};
|
|
@@ -1617,6 +1655,7 @@ export type Database = {
|
|
|
1617
1655
|
id: string;
|
|
1618
1656
|
name: string;
|
|
1619
1657
|
owner: string | null;
|
|
1658
|
+
owner_id: string | null;
|
|
1620
1659
|
public: boolean | null;
|
|
1621
1660
|
updated_at: string | null;
|
|
1622
1661
|
};
|
|
@@ -1748,7 +1787,7 @@ export type Database = {
|
|
|
1748
1787
|
Args: {
|
|
1749
1788
|
name: string;
|
|
1750
1789
|
};
|
|
1751
|
-
Returns:
|
|
1790
|
+
Returns: string[];
|
|
1752
1791
|
};
|
|
1753
1792
|
get_size_by_bucket: {
|
|
1754
1793
|
Args: Record<PropertyKey, never>;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -75,33 +75,36 @@ export type Database = {
|
|
|
75
75
|
{
|
|
76
76
|
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey"
|
|
77
77
|
columns: ["broadcast_id"]
|
|
78
|
+
isOneToOne: false
|
|
78
79
|
referencedRelation: "tbl_broadcast_messages"
|
|
79
80
|
referencedColumns: ["broadcast_id"]
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
83
|
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey"
|
|
83
84
|
columns: ["broadcast_id"]
|
|
85
|
+
isOneToOne: false
|
|
84
86
|
referencedRelation: "view_broadcast_logs"
|
|
85
87
|
referencedColumns: ["broadcast_id"]
|
|
86
88
|
},
|
|
87
89
|
{
|
|
88
90
|
foreignKeyName: "tbl_broadcast_logs_org_id_fkey"
|
|
89
91
|
columns: ["org_id"]
|
|
92
|
+
isOneToOne: false
|
|
90
93
|
referencedRelation: "tbl_org"
|
|
91
94
|
referencedColumns: ["org_id"]
|
|
92
95
|
},
|
|
93
96
|
{
|
|
94
97
|
foreignKeyName: "tbl_broadcast_logs_org_id_fkey"
|
|
95
98
|
columns: ["org_id"]
|
|
99
|
+
isOneToOne: false
|
|
96
100
|
referencedRelation: "view_org"
|
|
97
101
|
referencedColumns: ["org_id"]
|
|
98
|
-
}
|
|
102
|
+
},
|
|
99
103
|
]
|
|
100
104
|
}
|
|
101
105
|
tbl_broadcast_messages: {
|
|
102
106
|
Row: {
|
|
103
107
|
broadcast_id: string
|
|
104
|
-
broadcast_status: string | null
|
|
105
108
|
chat_ids: string[] | null
|
|
106
109
|
created_at: string
|
|
107
110
|
message_payload: Json | null
|
|
@@ -112,7 +115,6 @@ export type Database = {
|
|
|
112
115
|
}
|
|
113
116
|
Insert: {
|
|
114
117
|
broadcast_id?: string
|
|
115
|
-
broadcast_status?: string | null
|
|
116
118
|
chat_ids?: string[] | null
|
|
117
119
|
created_at?: string
|
|
118
120
|
message_payload?: Json | null
|
|
@@ -123,7 +125,6 @@ export type Database = {
|
|
|
123
125
|
}
|
|
124
126
|
Update: {
|
|
125
127
|
broadcast_id?: string
|
|
126
|
-
broadcast_status?: string | null
|
|
127
128
|
chat_ids?: string[] | null
|
|
128
129
|
created_at?: string
|
|
129
130
|
message_payload?: Json | null
|
|
@@ -136,15 +137,17 @@ export type Database = {
|
|
|
136
137
|
{
|
|
137
138
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
|
|
138
139
|
columns: ["org_id"]
|
|
140
|
+
isOneToOne: false
|
|
139
141
|
referencedRelation: "tbl_org"
|
|
140
142
|
referencedColumns: ["org_id"]
|
|
141
143
|
},
|
|
142
144
|
{
|
|
143
145
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
|
|
144
146
|
columns: ["org_id"]
|
|
147
|
+
isOneToOne: false
|
|
145
148
|
referencedRelation: "view_org"
|
|
146
149
|
referencedColumns: ["org_id"]
|
|
147
|
-
}
|
|
150
|
+
},
|
|
148
151
|
]
|
|
149
152
|
}
|
|
150
153
|
tbl_broadcast_templates: {
|
|
@@ -176,15 +179,17 @@ export type Database = {
|
|
|
176
179
|
{
|
|
177
180
|
foreignKeyName: "tbl_broadcast_templates_org_id_fkey"
|
|
178
181
|
columns: ["org_id"]
|
|
182
|
+
isOneToOne: false
|
|
179
183
|
referencedRelation: "tbl_org"
|
|
180
184
|
referencedColumns: ["org_id"]
|
|
181
185
|
},
|
|
182
186
|
{
|
|
183
187
|
foreignKeyName: "tbl_broadcast_templates_org_id_fkey"
|
|
184
188
|
columns: ["org_id"]
|
|
189
|
+
isOneToOne: false
|
|
185
190
|
referencedRelation: "view_org"
|
|
186
191
|
referencedColumns: ["org_id"]
|
|
187
|
-
}
|
|
192
|
+
},
|
|
188
193
|
]
|
|
189
194
|
}
|
|
190
195
|
tbl_chat_access: {
|
|
@@ -219,9 +224,10 @@ export type Database = {
|
|
|
219
224
|
{
|
|
220
225
|
foreignKeyName: "tbl_chat_access_org_id_email_fkey"
|
|
221
226
|
columns: ["org_id", "email"]
|
|
227
|
+
isOneToOne: false
|
|
222
228
|
referencedRelation: "tbl_org_members"
|
|
223
229
|
referencedColumns: ["org_id", "email"]
|
|
224
|
-
}
|
|
230
|
+
},
|
|
225
231
|
]
|
|
226
232
|
}
|
|
227
233
|
tbl_chat_messages: {
|
|
@@ -373,9 +379,10 @@ export type Database = {
|
|
|
373
379
|
{
|
|
374
380
|
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
|
|
375
381
|
columns: ["org_phone", "org_id"]
|
|
382
|
+
isOneToOne: false
|
|
376
383
|
referencedRelation: "tbl_org_phones"
|
|
377
384
|
referencedColumns: ["org_phone", "org_id"]
|
|
378
|
-
}
|
|
385
|
+
},
|
|
379
386
|
]
|
|
380
387
|
}
|
|
381
388
|
tbl_chat_notifications: {
|
|
@@ -422,9 +429,10 @@ export type Database = {
|
|
|
422
429
|
{
|
|
423
430
|
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones"
|
|
424
431
|
columns: ["org_id", "org_phone"]
|
|
432
|
+
isOneToOne: false
|
|
425
433
|
referencedRelation: "tbl_org_phones"
|
|
426
434
|
referencedColumns: ["org_id", "org_phone"]
|
|
427
|
-
}
|
|
435
|
+
},
|
|
428
436
|
]
|
|
429
437
|
}
|
|
430
438
|
tbl_chat_participants: {
|
|
@@ -459,9 +467,10 @@ export type Database = {
|
|
|
459
467
|
{
|
|
460
468
|
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
|
|
461
469
|
columns: ["org_id", "org_phone", "chat_id"]
|
|
470
|
+
isOneToOne: false
|
|
462
471
|
referencedRelation: "tbl_chats"
|
|
463
472
|
referencedColumns: ["org_id", "org_phone", "chat_id"]
|
|
464
|
-
}
|
|
473
|
+
},
|
|
465
474
|
]
|
|
466
475
|
}
|
|
467
476
|
tbl_chat_properties: {
|
|
@@ -541,9 +550,10 @@ export type Database = {
|
|
|
541
550
|
{
|
|
542
551
|
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones"
|
|
543
552
|
columns: ["org_id", "org_phone"]
|
|
553
|
+
isOneToOne: false
|
|
544
554
|
referencedRelation: "tbl_org_phones"
|
|
545
555
|
referencedColumns: ["org_id", "org_phone"]
|
|
546
|
-
}
|
|
556
|
+
},
|
|
547
557
|
]
|
|
548
558
|
}
|
|
549
559
|
tbl_chat_tickets: {
|
|
@@ -606,15 +616,17 @@ export type Database = {
|
|
|
606
616
|
{
|
|
607
617
|
foreignKeyName: "tbl_chat_tickets_org_id_fkey"
|
|
608
618
|
columns: ["org_id"]
|
|
619
|
+
isOneToOne: false
|
|
609
620
|
referencedRelation: "tbl_org"
|
|
610
621
|
referencedColumns: ["org_id"]
|
|
611
622
|
},
|
|
612
623
|
{
|
|
613
624
|
foreignKeyName: "tbl_chat_tickets_org_id_fkey"
|
|
614
625
|
columns: ["org_id"]
|
|
626
|
+
isOneToOne: false
|
|
615
627
|
referencedRelation: "view_org"
|
|
616
628
|
referencedColumns: ["org_id"]
|
|
617
|
-
}
|
|
629
|
+
},
|
|
618
630
|
]
|
|
619
631
|
}
|
|
620
632
|
tbl_chats: {
|
|
@@ -694,9 +706,10 @@ export type Database = {
|
|
|
694
706
|
{
|
|
695
707
|
foreignKeyName: "tbl_chats_fkey_tbl_org_phones"
|
|
696
708
|
columns: ["org_phone", "org_id"]
|
|
709
|
+
isOneToOne: false
|
|
697
710
|
referencedRelation: "tbl_org_phones"
|
|
698
711
|
referencedColumns: ["org_phone", "org_id"]
|
|
699
|
-
}
|
|
712
|
+
},
|
|
700
713
|
]
|
|
701
714
|
}
|
|
702
715
|
tbl_contacts: {
|
|
@@ -785,15 +798,17 @@ export type Database = {
|
|
|
785
798
|
{
|
|
786
799
|
foreignKeyName: "tbl_contacts_org_id_fkey"
|
|
787
800
|
columns: ["org_id"]
|
|
801
|
+
isOneToOne: false
|
|
788
802
|
referencedRelation: "tbl_org"
|
|
789
803
|
referencedColumns: ["org_id"]
|
|
790
804
|
},
|
|
791
805
|
{
|
|
792
806
|
foreignKeyName: "tbl_contacts_org_id_fkey"
|
|
793
807
|
columns: ["org_id"]
|
|
808
|
+
isOneToOne: false
|
|
794
809
|
referencedRelation: "view_org"
|
|
795
810
|
referencedColumns: ["org_id"]
|
|
796
|
-
}
|
|
811
|
+
},
|
|
797
812
|
]
|
|
798
813
|
}
|
|
799
814
|
tbl_custom_properties: {
|
|
@@ -831,15 +846,17 @@ export type Database = {
|
|
|
831
846
|
{
|
|
832
847
|
foreignKeyName: "tbl_custom_properties_org_id_fkey"
|
|
833
848
|
columns: ["org_id"]
|
|
849
|
+
isOneToOne: false
|
|
834
850
|
referencedRelation: "tbl_org"
|
|
835
851
|
referencedColumns: ["org_id"]
|
|
836
852
|
},
|
|
837
853
|
{
|
|
838
854
|
foreignKeyName: "tbl_custom_properties_org_id_fkey"
|
|
839
855
|
columns: ["org_id"]
|
|
856
|
+
isOneToOne: false
|
|
840
857
|
referencedRelation: "view_org"
|
|
841
858
|
referencedColumns: ["org_id"]
|
|
842
|
-
}
|
|
859
|
+
},
|
|
843
860
|
]
|
|
844
861
|
}
|
|
845
862
|
tbl_flagged_messages: {
|
|
@@ -877,15 +894,17 @@ export type Database = {
|
|
|
877
894
|
{
|
|
878
895
|
foreignKeyName: "tbl_flagged_messages_org_id_fkey"
|
|
879
896
|
columns: ["org_id"]
|
|
897
|
+
isOneToOne: false
|
|
880
898
|
referencedRelation: "tbl_org"
|
|
881
899
|
referencedColumns: ["org_id"]
|
|
882
900
|
},
|
|
883
901
|
{
|
|
884
902
|
foreignKeyName: "tbl_flagged_messages_org_id_fkey"
|
|
885
903
|
columns: ["org_id"]
|
|
904
|
+
isOneToOne: false
|
|
886
905
|
referencedRelation: "view_org"
|
|
887
906
|
referencedColumns: ["org_id"]
|
|
888
|
-
}
|
|
907
|
+
},
|
|
889
908
|
]
|
|
890
909
|
}
|
|
891
910
|
tbl_integration_hooks: {
|
|
@@ -929,15 +948,17 @@ export type Database = {
|
|
|
929
948
|
{
|
|
930
949
|
foreignKeyName: "tbl_integration_hooks_org_id_fkey"
|
|
931
950
|
columns: ["org_id"]
|
|
951
|
+
isOneToOne: false
|
|
932
952
|
referencedRelation: "tbl_org"
|
|
933
953
|
referencedColumns: ["org_id"]
|
|
934
954
|
},
|
|
935
955
|
{
|
|
936
956
|
foreignKeyName: "tbl_integration_hooks_org_id_fkey"
|
|
937
957
|
columns: ["org_id"]
|
|
958
|
+
isOneToOne: false
|
|
938
959
|
referencedRelation: "view_org"
|
|
939
960
|
referencedColumns: ["org_id"]
|
|
940
|
-
}
|
|
961
|
+
},
|
|
941
962
|
]
|
|
942
963
|
}
|
|
943
964
|
tbl_integration_logs: {
|
|
@@ -978,15 +999,17 @@ export type Database = {
|
|
|
978
999
|
{
|
|
979
1000
|
foreignKeyName: "tbl_integration_logs_org_id_fkey"
|
|
980
1001
|
columns: ["org_id"]
|
|
1002
|
+
isOneToOne: false
|
|
981
1003
|
referencedRelation: "tbl_org"
|
|
982
1004
|
referencedColumns: ["org_id"]
|
|
983
1005
|
},
|
|
984
1006
|
{
|
|
985
1007
|
foreignKeyName: "tbl_integration_logs_org_id_fkey"
|
|
986
1008
|
columns: ["org_id"]
|
|
1009
|
+
isOneToOne: false
|
|
987
1010
|
referencedRelation: "view_org"
|
|
988
1011
|
referencedColumns: ["org_id"]
|
|
989
|
-
}
|
|
1012
|
+
},
|
|
990
1013
|
]
|
|
991
1014
|
}
|
|
992
1015
|
tbl_integration_tokens: {
|
|
@@ -1027,15 +1050,17 @@ export type Database = {
|
|
|
1027
1050
|
{
|
|
1028
1051
|
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey"
|
|
1029
1052
|
columns: ["org_id"]
|
|
1053
|
+
isOneToOne: false
|
|
1030
1054
|
referencedRelation: "tbl_org"
|
|
1031
1055
|
referencedColumns: ["org_id"]
|
|
1032
1056
|
},
|
|
1033
1057
|
{
|
|
1034
1058
|
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey"
|
|
1035
1059
|
columns: ["org_id"]
|
|
1060
|
+
isOneToOne: false
|
|
1036
1061
|
referencedRelation: "view_org"
|
|
1037
1062
|
referencedColumns: ["org_id"]
|
|
1038
|
-
}
|
|
1063
|
+
},
|
|
1039
1064
|
]
|
|
1040
1065
|
}
|
|
1041
1066
|
tbl_org: {
|
|
@@ -1106,15 +1131,17 @@ export type Database = {
|
|
|
1106
1131
|
{
|
|
1107
1132
|
foreignKeyName: "tbl_org_labels_org_id_fkey"
|
|
1108
1133
|
columns: ["org_id"]
|
|
1134
|
+
isOneToOne: false
|
|
1109
1135
|
referencedRelation: "tbl_org"
|
|
1110
1136
|
referencedColumns: ["org_id"]
|
|
1111
1137
|
},
|
|
1112
1138
|
{
|
|
1113
1139
|
foreignKeyName: "tbl_org_labels_org_id_fkey"
|
|
1114
1140
|
columns: ["org_id"]
|
|
1141
|
+
isOneToOne: false
|
|
1115
1142
|
referencedRelation: "view_org"
|
|
1116
1143
|
referencedColumns: ["org_id"]
|
|
1117
|
-
}
|
|
1144
|
+
},
|
|
1118
1145
|
]
|
|
1119
1146
|
}
|
|
1120
1147
|
tbl_org_members: {
|
|
@@ -1173,21 +1200,24 @@ export type Database = {
|
|
|
1173
1200
|
{
|
|
1174
1201
|
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1175
1202
|
columns: ["user_id"]
|
|
1203
|
+
isOneToOne: false
|
|
1176
1204
|
referencedRelation: "users"
|
|
1177
1205
|
referencedColumns: ["id"]
|
|
1178
1206
|
},
|
|
1179
1207
|
{
|
|
1180
1208
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1181
1209
|
columns: ["org_id"]
|
|
1210
|
+
isOneToOne: false
|
|
1182
1211
|
referencedRelation: "tbl_org"
|
|
1183
1212
|
referencedColumns: ["org_id"]
|
|
1184
1213
|
},
|
|
1185
1214
|
{
|
|
1186
1215
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1187
1216
|
columns: ["org_id"]
|
|
1217
|
+
isOneToOne: false
|
|
1188
1218
|
referencedRelation: "view_org"
|
|
1189
1219
|
referencedColumns: ["org_id"]
|
|
1190
|
-
}
|
|
1220
|
+
},
|
|
1191
1221
|
]
|
|
1192
1222
|
}
|
|
1193
1223
|
tbl_org_phones: {
|
|
@@ -1249,27 +1279,31 @@ export type Database = {
|
|
|
1249
1279
|
{
|
|
1250
1280
|
foreignKeyName: "tbl_org_phones_fkey_tbl_org"
|
|
1251
1281
|
columns: ["org_id"]
|
|
1282
|
+
isOneToOne: false
|
|
1252
1283
|
referencedRelation: "tbl_org"
|
|
1253
1284
|
referencedColumns: ["org_id"]
|
|
1254
1285
|
},
|
|
1255
1286
|
{
|
|
1256
1287
|
foreignKeyName: "tbl_org_phones_fkey_tbl_org"
|
|
1257
1288
|
columns: ["org_id"]
|
|
1289
|
+
isOneToOne: false
|
|
1258
1290
|
referencedRelation: "view_org"
|
|
1259
1291
|
referencedColumns: ["org_id"]
|
|
1260
1292
|
},
|
|
1261
1293
|
{
|
|
1262
1294
|
foreignKeyName: "tbl_org_phones_org_id_fkey"
|
|
1263
1295
|
columns: ["org_id"]
|
|
1296
|
+
isOneToOne: false
|
|
1264
1297
|
referencedRelation: "tbl_org"
|
|
1265
1298
|
referencedColumns: ["org_id"]
|
|
1266
1299
|
},
|
|
1267
1300
|
{
|
|
1268
1301
|
foreignKeyName: "tbl_org_phones_org_id_fkey"
|
|
1269
1302
|
columns: ["org_id"]
|
|
1303
|
+
isOneToOne: false
|
|
1270
1304
|
referencedRelation: "view_org"
|
|
1271
1305
|
referencedColumns: ["org_id"]
|
|
1272
|
-
}
|
|
1306
|
+
},
|
|
1273
1307
|
]
|
|
1274
1308
|
}
|
|
1275
1309
|
tbl_quick_replies: {
|
|
@@ -1298,15 +1332,17 @@ export type Database = {
|
|
|
1298
1332
|
{
|
|
1299
1333
|
foreignKeyName: "tbl_quick_replies_org_id_fkey"
|
|
1300
1334
|
columns: ["org_id"]
|
|
1335
|
+
isOneToOne: false
|
|
1301
1336
|
referencedRelation: "tbl_org"
|
|
1302
1337
|
referencedColumns: ["org_id"]
|
|
1303
1338
|
},
|
|
1304
1339
|
{
|
|
1305
1340
|
foreignKeyName: "tbl_quick_replies_org_id_fkey"
|
|
1306
1341
|
columns: ["org_id"]
|
|
1342
|
+
isOneToOne: false
|
|
1307
1343
|
referencedRelation: "view_org"
|
|
1308
1344
|
referencedColumns: ["org_id"]
|
|
1309
|
-
}
|
|
1345
|
+
},
|
|
1310
1346
|
]
|
|
1311
1347
|
}
|
|
1312
1348
|
tbl_tools_whatsapp_links: {
|
|
@@ -1358,15 +1394,17 @@ export type Database = {
|
|
|
1358
1394
|
{
|
|
1359
1395
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
|
|
1360
1396
|
columns: ["org_id"]
|
|
1397
|
+
isOneToOne: false
|
|
1361
1398
|
referencedRelation: "tbl_org"
|
|
1362
1399
|
referencedColumns: ["org_id"]
|
|
1363
1400
|
},
|
|
1364
1401
|
{
|
|
1365
1402
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey"
|
|
1366
1403
|
columns: ["org_id"]
|
|
1404
|
+
isOneToOne: false
|
|
1367
1405
|
referencedRelation: "view_org"
|
|
1368
1406
|
referencedColumns: ["org_id"]
|
|
1369
|
-
}
|
|
1407
|
+
},
|
|
1370
1408
|
]
|
|
1371
1409
|
}
|
|
1372
1410
|
view_chats: {
|
|
@@ -1512,7 +1550,7 @@ export type Database = {
|
|
|
1512
1550
|
Args: {
|
|
1513
1551
|
chat_id_input: string
|
|
1514
1552
|
org_id_input: string
|
|
1515
|
-
org_phone_input
|
|
1553
|
+
org_phone_input: string
|
|
1516
1554
|
}
|
|
1517
1555
|
Returns: Json
|
|
1518
1556
|
}
|
|
@@ -1568,6 +1606,7 @@ export type Database = {
|
|
|
1568
1606
|
org_id_input?: string
|
|
1569
1607
|
chat_id_input?: string
|
|
1570
1608
|
unique_message_id_input?: string
|
|
1609
|
+
org_phone_input?: string
|
|
1571
1610
|
}
|
|
1572
1611
|
Returns: Json
|
|
1573
1612
|
}
|
|
@@ -1575,7 +1614,6 @@ export type Database = {
|
|
|
1575
1614
|
Args: {
|
|
1576
1615
|
path_input?: string
|
|
1577
1616
|
bucket_name?: string
|
|
1578
|
-
req_base?: boolean
|
|
1579
1617
|
}
|
|
1580
1618
|
Returns: string
|
|
1581
1619
|
}
|
|
@@ -1663,6 +1701,7 @@ export type Database = {
|
|
|
1663
1701
|
id: string
|
|
1664
1702
|
name: string
|
|
1665
1703
|
owner: string | null
|
|
1704
|
+
owner_id: string | null
|
|
1666
1705
|
public: boolean | null
|
|
1667
1706
|
updated_at: string | null
|
|
1668
1707
|
}
|
|
@@ -1794,7 +1833,7 @@ export type Database = {
|
|
|
1794
1833
|
Args: {
|
|
1795
1834
|
name: string
|
|
1796
1835
|
}
|
|
1797
|
-
Returns:
|
|
1836
|
+
Returns: string[]
|
|
1798
1837
|
}
|
|
1799
1838
|
get_size_by_bucket: {
|
|
1800
1839
|
Args: Record<PropertyKey, never>
|