@periskope/types 0.6.83 → 0.6.85
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 +27 -95
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
- package/supabase.types.ts +1887 -1957
- package/types.ts +17 -0
package/dist/supabase.types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Json = {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
|
-
export
|
|
4
|
+
export interface Database {
|
|
5
5
|
graphql_public: {
|
|
6
6
|
Tables: {
|
|
7
7
|
[_ in never]: never;
|
|
@@ -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
|
}
|
|
@@ -242,6 +236,7 @@ export type Database = {
|
|
|
242
236
|
delivery_info: Json | null;
|
|
243
237
|
device_type: string | null;
|
|
244
238
|
duration: string | null;
|
|
239
|
+
flag_metadata: Json | null;
|
|
245
240
|
forwarding_score: number | null;
|
|
246
241
|
from: string | null;
|
|
247
242
|
from_me: boolean | null;
|
|
@@ -290,6 +285,7 @@ export type Database = {
|
|
|
290
285
|
delivery_info?: Json | null;
|
|
291
286
|
device_type?: string | null;
|
|
292
287
|
duration?: string | null;
|
|
288
|
+
flag_metadata?: Json | null;
|
|
293
289
|
forwarding_score?: number | null;
|
|
294
290
|
from?: string | null;
|
|
295
291
|
from_me?: boolean | null;
|
|
@@ -338,6 +334,7 @@ export type Database = {
|
|
|
338
334
|
delivery_info?: Json | null;
|
|
339
335
|
device_type?: string | null;
|
|
340
336
|
duration?: string | null;
|
|
337
|
+
flag_metadata?: Json | null;
|
|
341
338
|
forwarding_score?: number | null;
|
|
342
339
|
from?: string | null;
|
|
343
340
|
from_me?: boolean | null;
|
|
@@ -380,7 +377,6 @@ export type Database = {
|
|
|
380
377
|
{
|
|
381
378
|
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
382
379
|
columns: ["org_phone", "org_id"];
|
|
383
|
-
isOneToOne: false;
|
|
384
380
|
referencedRelation: "tbl_org_phones";
|
|
385
381
|
referencedColumns: ["org_phone", "org_id"];
|
|
386
382
|
}
|
|
@@ -430,7 +426,6 @@ export type Database = {
|
|
|
430
426
|
{
|
|
431
427
|
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
432
428
|
columns: ["org_id", "org_phone"];
|
|
433
|
-
isOneToOne: false;
|
|
434
429
|
referencedRelation: "tbl_org_phones";
|
|
435
430
|
referencedColumns: ["org_id", "org_phone"];
|
|
436
431
|
}
|
|
@@ -468,7 +463,6 @@ export type Database = {
|
|
|
468
463
|
{
|
|
469
464
|
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
470
465
|
columns: ["org_id", "org_phone", "chat_id"];
|
|
471
|
-
isOneToOne: false;
|
|
472
466
|
referencedRelation: "tbl_chats";
|
|
473
467
|
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
474
468
|
}
|
|
@@ -551,7 +545,6 @@ export type Database = {
|
|
|
551
545
|
{
|
|
552
546
|
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
553
547
|
columns: ["org_id", "org_phone"];
|
|
554
|
-
isOneToOne: false;
|
|
555
548
|
referencedRelation: "tbl_org_phones";
|
|
556
549
|
referencedColumns: ["org_id", "org_phone"];
|
|
557
550
|
}
|
|
@@ -613,14 +606,12 @@ export type Database = {
|
|
|
613
606
|
{
|
|
614
607
|
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
615
608
|
columns: ["org_id"];
|
|
616
|
-
isOneToOne: false;
|
|
617
609
|
referencedRelation: "tbl_org";
|
|
618
610
|
referencedColumns: ["org_id"];
|
|
619
611
|
},
|
|
620
612
|
{
|
|
621
613
|
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
622
614
|
columns: ["org_id"];
|
|
623
|
-
isOneToOne: false;
|
|
624
615
|
referencedRelation: "view_org";
|
|
625
616
|
referencedColumns: ["org_id"];
|
|
626
617
|
}
|
|
@@ -703,7 +694,6 @@ export type Database = {
|
|
|
703
694
|
{
|
|
704
695
|
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
705
696
|
columns: ["org_phone", "org_id"];
|
|
706
|
-
isOneToOne: false;
|
|
707
697
|
referencedRelation: "tbl_org_phones";
|
|
708
698
|
referencedColumns: ["org_phone", "org_id"];
|
|
709
699
|
}
|
|
@@ -795,14 +785,12 @@ export type Database = {
|
|
|
795
785
|
{
|
|
796
786
|
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
797
787
|
columns: ["org_id"];
|
|
798
|
-
isOneToOne: false;
|
|
799
788
|
referencedRelation: "tbl_org";
|
|
800
789
|
referencedColumns: ["org_id"];
|
|
801
790
|
},
|
|
802
791
|
{
|
|
803
792
|
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
804
793
|
columns: ["org_id"];
|
|
805
|
-
isOneToOne: false;
|
|
806
794
|
referencedRelation: "view_org";
|
|
807
795
|
referencedColumns: ["org_id"];
|
|
808
796
|
}
|
|
@@ -843,62 +831,12 @@ export type Database = {
|
|
|
843
831
|
{
|
|
844
832
|
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
845
833
|
columns: ["org_id"];
|
|
846
|
-
isOneToOne: false;
|
|
847
834
|
referencedRelation: "tbl_org";
|
|
848
835
|
referencedColumns: ["org_id"];
|
|
849
836
|
},
|
|
850
837
|
{
|
|
851
838
|
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
852
839
|
columns: ["org_id"];
|
|
853
|
-
isOneToOne: false;
|
|
854
|
-
referencedRelation: "view_org";
|
|
855
|
-
referencedColumns: ["org_id"];
|
|
856
|
-
}
|
|
857
|
-
];
|
|
858
|
-
};
|
|
859
|
-
tbl_flagged_messages: {
|
|
860
|
-
Row: {
|
|
861
|
-
chat_id: string | null;
|
|
862
|
-
message_timestamp: string | null;
|
|
863
|
-
org_id: string;
|
|
864
|
-
responder_email: string | null;
|
|
865
|
-
response_id: string | null;
|
|
866
|
-
response_timestamp: string | null;
|
|
867
|
-
response_type: string | null;
|
|
868
|
-
unique_id: string;
|
|
869
|
-
};
|
|
870
|
-
Insert: {
|
|
871
|
-
chat_id?: string | null;
|
|
872
|
-
message_timestamp?: string | null;
|
|
873
|
-
org_id: string;
|
|
874
|
-
responder_email?: string | null;
|
|
875
|
-
response_id?: string | null;
|
|
876
|
-
response_timestamp?: string | null;
|
|
877
|
-
response_type?: string | null;
|
|
878
|
-
unique_id: string;
|
|
879
|
-
};
|
|
880
|
-
Update: {
|
|
881
|
-
chat_id?: string | null;
|
|
882
|
-
message_timestamp?: string | null;
|
|
883
|
-
org_id?: string;
|
|
884
|
-
responder_email?: string | null;
|
|
885
|
-
response_id?: string | null;
|
|
886
|
-
response_timestamp?: string | null;
|
|
887
|
-
response_type?: string | null;
|
|
888
|
-
unique_id?: string;
|
|
889
|
-
};
|
|
890
|
-
Relationships: [
|
|
891
|
-
{
|
|
892
|
-
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
893
|
-
columns: ["org_id"];
|
|
894
|
-
isOneToOne: false;
|
|
895
|
-
referencedRelation: "tbl_org";
|
|
896
|
-
referencedColumns: ["org_id"];
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
900
|
-
columns: ["org_id"];
|
|
901
|
-
isOneToOne: false;
|
|
902
840
|
referencedRelation: "view_org";
|
|
903
841
|
referencedColumns: ["org_id"];
|
|
904
842
|
}
|
|
@@ -945,14 +883,12 @@ export type Database = {
|
|
|
945
883
|
{
|
|
946
884
|
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
947
885
|
columns: ["org_id"];
|
|
948
|
-
isOneToOne: false;
|
|
949
886
|
referencedRelation: "tbl_org";
|
|
950
887
|
referencedColumns: ["org_id"];
|
|
951
888
|
},
|
|
952
889
|
{
|
|
953
890
|
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
954
891
|
columns: ["org_id"];
|
|
955
|
-
isOneToOne: false;
|
|
956
892
|
referencedRelation: "view_org";
|
|
957
893
|
referencedColumns: ["org_id"];
|
|
958
894
|
}
|
|
@@ -996,14 +932,12 @@ export type Database = {
|
|
|
996
932
|
{
|
|
997
933
|
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
998
934
|
columns: ["org_id"];
|
|
999
|
-
isOneToOne: false;
|
|
1000
935
|
referencedRelation: "tbl_org";
|
|
1001
936
|
referencedColumns: ["org_id"];
|
|
1002
937
|
},
|
|
1003
938
|
{
|
|
1004
939
|
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1005
940
|
columns: ["org_id"];
|
|
1006
|
-
isOneToOne: false;
|
|
1007
941
|
referencedRelation: "view_org";
|
|
1008
942
|
referencedColumns: ["org_id"];
|
|
1009
943
|
}
|
|
@@ -1047,14 +981,12 @@ export type Database = {
|
|
|
1047
981
|
{
|
|
1048
982
|
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1049
983
|
columns: ["org_id"];
|
|
1050
|
-
isOneToOne: false;
|
|
1051
984
|
referencedRelation: "tbl_org";
|
|
1052
985
|
referencedColumns: ["org_id"];
|
|
1053
986
|
},
|
|
1054
987
|
{
|
|
1055
988
|
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1056
989
|
columns: ["org_id"];
|
|
1057
|
-
isOneToOne: false;
|
|
1058
990
|
referencedRelation: "view_org";
|
|
1059
991
|
referencedColumns: ["org_id"];
|
|
1060
992
|
}
|
|
@@ -1128,14 +1060,12 @@ export type Database = {
|
|
|
1128
1060
|
{
|
|
1129
1061
|
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1130
1062
|
columns: ["org_id"];
|
|
1131
|
-
isOneToOne: false;
|
|
1132
1063
|
referencedRelation: "tbl_org";
|
|
1133
1064
|
referencedColumns: ["org_id"];
|
|
1134
1065
|
},
|
|
1135
1066
|
{
|
|
1136
1067
|
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1137
1068
|
columns: ["org_id"];
|
|
1138
|
-
isOneToOne: false;
|
|
1139
1069
|
referencedRelation: "view_org";
|
|
1140
1070
|
referencedColumns: ["org_id"];
|
|
1141
1071
|
}
|
|
@@ -1197,21 +1127,18 @@ export type Database = {
|
|
|
1197
1127
|
{
|
|
1198
1128
|
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1199
1129
|
columns: ["user_id"];
|
|
1200
|
-
isOneToOne: false;
|
|
1201
1130
|
referencedRelation: "users";
|
|
1202
1131
|
referencedColumns: ["id"];
|
|
1203
1132
|
},
|
|
1204
1133
|
{
|
|
1205
1134
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1206
1135
|
columns: ["org_id"];
|
|
1207
|
-
isOneToOne: false;
|
|
1208
1136
|
referencedRelation: "tbl_org";
|
|
1209
1137
|
referencedColumns: ["org_id"];
|
|
1210
1138
|
},
|
|
1211
1139
|
{
|
|
1212
1140
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1213
1141
|
columns: ["org_id"];
|
|
1214
|
-
isOneToOne: false;
|
|
1215
1142
|
referencedRelation: "view_org";
|
|
1216
1143
|
referencedColumns: ["org_id"];
|
|
1217
1144
|
}
|
|
@@ -1276,28 +1203,24 @@ export type Database = {
|
|
|
1276
1203
|
{
|
|
1277
1204
|
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1278
1205
|
columns: ["org_id"];
|
|
1279
|
-
isOneToOne: false;
|
|
1280
1206
|
referencedRelation: "tbl_org";
|
|
1281
1207
|
referencedColumns: ["org_id"];
|
|
1282
1208
|
},
|
|
1283
1209
|
{
|
|
1284
1210
|
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1285
1211
|
columns: ["org_id"];
|
|
1286
|
-
isOneToOne: false;
|
|
1287
1212
|
referencedRelation: "view_org";
|
|
1288
1213
|
referencedColumns: ["org_id"];
|
|
1289
1214
|
},
|
|
1290
1215
|
{
|
|
1291
1216
|
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1292
1217
|
columns: ["org_id"];
|
|
1293
|
-
isOneToOne: false;
|
|
1294
1218
|
referencedRelation: "tbl_org";
|
|
1295
1219
|
referencedColumns: ["org_id"];
|
|
1296
1220
|
},
|
|
1297
1221
|
{
|
|
1298
1222
|
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1299
1223
|
columns: ["org_id"];
|
|
1300
|
-
isOneToOne: false;
|
|
1301
1224
|
referencedRelation: "view_org";
|
|
1302
1225
|
referencedColumns: ["org_id"];
|
|
1303
1226
|
}
|
|
@@ -1329,14 +1252,12 @@ export type Database = {
|
|
|
1329
1252
|
{
|
|
1330
1253
|
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1331
1254
|
columns: ["org_id"];
|
|
1332
|
-
isOneToOne: false;
|
|
1333
1255
|
referencedRelation: "tbl_org";
|
|
1334
1256
|
referencedColumns: ["org_id"];
|
|
1335
1257
|
},
|
|
1336
1258
|
{
|
|
1337
1259
|
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1338
1260
|
columns: ["org_id"];
|
|
1339
|
-
isOneToOne: false;
|
|
1340
1261
|
referencedRelation: "view_org";
|
|
1341
1262
|
referencedColumns: ["org_id"];
|
|
1342
1263
|
}
|
|
@@ -1391,14 +1312,12 @@ export type Database = {
|
|
|
1391
1312
|
{
|
|
1392
1313
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1393
1314
|
columns: ["org_id"];
|
|
1394
|
-
isOneToOne: false;
|
|
1395
1315
|
referencedRelation: "tbl_org";
|
|
1396
1316
|
referencedColumns: ["org_id"];
|
|
1397
1317
|
},
|
|
1398
1318
|
{
|
|
1399
1319
|
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1400
1320
|
columns: ["org_id"];
|
|
1401
|
-
isOneToOne: false;
|
|
1402
1321
|
referencedRelation: "view_org";
|
|
1403
1322
|
referencedColumns: ["org_id"];
|
|
1404
1323
|
}
|
|
@@ -1527,7 +1446,7 @@ export type Database = {
|
|
|
1527
1446
|
org_id_input: string;
|
|
1528
1447
|
chat_ids_input?: string[];
|
|
1529
1448
|
};
|
|
1530
|
-
Returns:
|
|
1449
|
+
Returns: unknown;
|
|
1531
1450
|
};
|
|
1532
1451
|
get_chat_members: {
|
|
1533
1452
|
Args: {
|
|
@@ -1547,7 +1466,7 @@ export type Database = {
|
|
|
1547
1466
|
Args: {
|
|
1548
1467
|
chat_id_input: string;
|
|
1549
1468
|
org_id_input: string;
|
|
1550
|
-
org_phone_input
|
|
1469
|
+
org_phone_input?: string;
|
|
1551
1470
|
};
|
|
1552
1471
|
Returns: Json;
|
|
1553
1472
|
};
|
|
@@ -1574,6 +1493,12 @@ export type Database = {
|
|
|
1574
1493
|
};
|
|
1575
1494
|
Returns: Json;
|
|
1576
1495
|
};
|
|
1496
|
+
get_integration_data: {
|
|
1497
|
+
Args: {
|
|
1498
|
+
org_id_input?: string;
|
|
1499
|
+
};
|
|
1500
|
+
Returns: Json;
|
|
1501
|
+
};
|
|
1577
1502
|
get_messages_notifications_reactions: {
|
|
1578
1503
|
Args: {
|
|
1579
1504
|
org_id_input: string;
|
|
@@ -1597,13 +1522,20 @@ export type Database = {
|
|
|
1597
1522
|
};
|
|
1598
1523
|
Returns: Json;
|
|
1599
1524
|
};
|
|
1525
|
+
get_team_metrics: {
|
|
1526
|
+
Args: {
|
|
1527
|
+
org_id_input: string;
|
|
1528
|
+
chat_id_input?: string[];
|
|
1529
|
+
interval_input?: unknown;
|
|
1530
|
+
};
|
|
1531
|
+
Returns: Json;
|
|
1532
|
+
};
|
|
1600
1533
|
get_ticket_info: {
|
|
1601
1534
|
Args: {
|
|
1602
1535
|
ticket_id_input?: string;
|
|
1603
1536
|
org_id_input?: string;
|
|
1604
1537
|
chat_id_input?: string;
|
|
1605
1538
|
unique_message_id_input?: string;
|
|
1606
|
-
org_phone_input?: string;
|
|
1607
1539
|
};
|
|
1608
1540
|
Returns: Json;
|
|
1609
1541
|
};
|
|
@@ -1611,12 +1543,13 @@ export type Database = {
|
|
|
1611
1543
|
Args: {
|
|
1612
1544
|
path_input?: string;
|
|
1613
1545
|
bucket_name?: string;
|
|
1546
|
+
req_base?: boolean;
|
|
1614
1547
|
};
|
|
1615
1548
|
Returns: string;
|
|
1616
1549
|
};
|
|
1617
1550
|
list_org_from_user: {
|
|
1618
1551
|
Args: Record<PropertyKey, never>;
|
|
1619
|
-
Returns:
|
|
1552
|
+
Returns: unknown;
|
|
1620
1553
|
};
|
|
1621
1554
|
list_role_from_user: {
|
|
1622
1555
|
Args: Record<PropertyKey, never>;
|
|
@@ -1655,7 +1588,6 @@ export type Database = {
|
|
|
1655
1588
|
id: string;
|
|
1656
1589
|
name: string;
|
|
1657
1590
|
owner: string | null;
|
|
1658
|
-
owner_id: string | null;
|
|
1659
1591
|
public: boolean | null;
|
|
1660
1592
|
updated_at: string | null;
|
|
1661
1593
|
};
|
|
@@ -1787,7 +1719,7 @@ export type Database = {
|
|
|
1787
1719
|
Args: {
|
|
1788
1720
|
name: string;
|
|
1789
1721
|
};
|
|
1790
|
-
Returns:
|
|
1722
|
+
Returns: unknown;
|
|
1791
1723
|
};
|
|
1792
1724
|
get_size_by_bucket: {
|
|
1793
1725
|
Args: Record<PropertyKey, never>;
|
|
@@ -1824,7 +1756,7 @@ export type Database = {
|
|
|
1824
1756
|
[_ in never]: never;
|
|
1825
1757
|
};
|
|
1826
1758
|
};
|
|
1827
|
-
}
|
|
1759
|
+
}
|
|
1828
1760
|
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
1829
1761
|
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
1830
1762
|
schema: keyof Database;
|
package/dist/types.d.ts
CHANGED
|
@@ -100,7 +100,14 @@ export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
|
100
100
|
chat_id: string;
|
|
101
101
|
message_type: (typeof SUPPORTED_TYPES)[number];
|
|
102
102
|
media: MediaType | null;
|
|
103
|
+
flag_metadata: MessageFlagType | null;
|
|
103
104
|
}>;
|
|
105
|
+
export type MessageFlagType = {
|
|
106
|
+
status: boolean;
|
|
107
|
+
response_type?: 'message' | 'reaction' | 'ticket';
|
|
108
|
+
response_id?: string;
|
|
109
|
+
response_timestamp?: string;
|
|
110
|
+
};
|
|
104
111
|
export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
|
|
105
112
|
label_ids: {
|
|
106
113
|
[key: string]: boolean;
|