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