@periskope/types 0.6.179 → 0.6.180
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/rules.types.d.ts +2 -1
- package/dist/rules.types.js +167 -11
- package/dist/supabase.types.d.ts +18 -91
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/rules.types.ts +197 -17
- package/supabase.types.ts +28 -91
- package/types.ts +1 -1
package/dist/rules.types.d.ts
CHANGED
|
@@ -297,9 +297,10 @@ export declare const ActionNameMap: Record<Action['type'], {
|
|
|
297
297
|
}>;
|
|
298
298
|
validTriggers: Rule['trigger'][];
|
|
299
299
|
}>;
|
|
300
|
+
type editorVariablesList = 'chat.assigned_to' | 'chat.chat_id' | 'chat.chat_name' | 'chat.chat_type' | 'chat.org_phone' | 'chat.org_id' | 'chat.group_description' | 'ticket.assignee' | 'ticket.due_date' | 'ticket.priority' | 'ticket.status' | 'ticket.subject' | 'ticket.ticket_id' | 'ticket.raised_by' | 'ticket.created_at' | 'sender.is_internal' | 'sender.is_admin' | 'sender.contact_name' | 'sender.contact_id' | 'reaction.sender_id' | 'reaction.reaction' | 'message.message_id' | 'message.timestamp' | 'message.sender_phone' | 'message.message_type' | 'message.media' | 'message.body';
|
|
300
301
|
export declare const editorVariables: Array<{
|
|
301
302
|
label: string;
|
|
302
|
-
value:
|
|
303
|
+
value: editorVariablesList;
|
|
303
304
|
validTriggers: Rule['trigger'][];
|
|
304
305
|
}>;
|
|
305
306
|
export declare const variablesExclusionList: Record<Rule['trigger'], Array<keyof AppendTypes<{
|
package/dist/rules.types.js
CHANGED
|
@@ -1097,8 +1097,8 @@ exports.ActionNameMap = {
|
|
|
1097
1097
|
],
|
|
1098
1098
|
},
|
|
1099
1099
|
send_slack_notification: {
|
|
1100
|
-
title: 'Send Slack Notification',
|
|
1101
|
-
description: 'Send a slack notification to a channel',
|
|
1100
|
+
title: 'Send Slack Webhook Notification',
|
|
1101
|
+
description: 'Send a slack webhook notification to a channel',
|
|
1102
1102
|
validTriggers: [
|
|
1103
1103
|
'message.created',
|
|
1104
1104
|
'message.updated',
|
|
@@ -1130,6 +1130,36 @@ exports.ActionNameMap = {
|
|
|
1130
1130
|
},
|
|
1131
1131
|
};
|
|
1132
1132
|
exports.editorVariables = [
|
|
1133
|
+
{
|
|
1134
|
+
label: 'Ticket ID',
|
|
1135
|
+
value: 'ticket.ticket_id',
|
|
1136
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
value: 'ticket.assignee',
|
|
1140
|
+
label: 'Ticket Assignee',
|
|
1141
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
value: 'ticket.due_date',
|
|
1145
|
+
label: 'Ticket Due Date',
|
|
1146
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
value: 'ticket.priority',
|
|
1150
|
+
label: 'Ticket Priority',
|
|
1151
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
value: 'ticket.status',
|
|
1155
|
+
label: 'Ticket Status',
|
|
1156
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
value: 'ticket.subject',
|
|
1160
|
+
label: 'Ticket Subject',
|
|
1161
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1162
|
+
},
|
|
1133
1163
|
{
|
|
1134
1164
|
label: 'Message Body',
|
|
1135
1165
|
value: 'message.body',
|
|
@@ -1142,6 +1172,66 @@ exports.editorVariables = [
|
|
|
1142
1172
|
'ticket.updated',
|
|
1143
1173
|
],
|
|
1144
1174
|
},
|
|
1175
|
+
{
|
|
1176
|
+
value: 'message.media',
|
|
1177
|
+
label: 'Message Media',
|
|
1178
|
+
validTriggers: [
|
|
1179
|
+
'message.created',
|
|
1180
|
+
'message.updated',
|
|
1181
|
+
'reaction.added',
|
|
1182
|
+
'message.flagged',
|
|
1183
|
+
'ticket.created',
|
|
1184
|
+
'ticket.updated',
|
|
1185
|
+
],
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
value: 'message.message_id',
|
|
1189
|
+
label: 'Message ID',
|
|
1190
|
+
validTriggers: [
|
|
1191
|
+
'message.created',
|
|
1192
|
+
'message.updated',
|
|
1193
|
+
'reaction.added',
|
|
1194
|
+
'message.flagged',
|
|
1195
|
+
'ticket.created',
|
|
1196
|
+
'ticket.updated',
|
|
1197
|
+
],
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
value: 'message.message_type',
|
|
1201
|
+
label: 'Message Type',
|
|
1202
|
+
validTriggers: [
|
|
1203
|
+
'message.created',
|
|
1204
|
+
'message.updated',
|
|
1205
|
+
'reaction.added',
|
|
1206
|
+
'message.flagged',
|
|
1207
|
+
'ticket.created',
|
|
1208
|
+
'ticket.updated',
|
|
1209
|
+
],
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
value: 'message.sender_phone',
|
|
1213
|
+
label: 'Sender Phone',
|
|
1214
|
+
validTriggers: [
|
|
1215
|
+
'message.created',
|
|
1216
|
+
'message.updated',
|
|
1217
|
+
'reaction.added',
|
|
1218
|
+
'message.flagged',
|
|
1219
|
+
'ticket.created',
|
|
1220
|
+
'ticket.updated',
|
|
1221
|
+
],
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
value: 'message.timestamp',
|
|
1225
|
+
label: 'Message Timestamp',
|
|
1226
|
+
validTriggers: [
|
|
1227
|
+
'message.created',
|
|
1228
|
+
'message.updated',
|
|
1229
|
+
'reaction.added',
|
|
1230
|
+
'message.flagged',
|
|
1231
|
+
'ticket.created',
|
|
1232
|
+
'ticket.updated',
|
|
1233
|
+
],
|
|
1234
|
+
},
|
|
1145
1235
|
{
|
|
1146
1236
|
label: 'Sender Name',
|
|
1147
1237
|
value: 'sender.contact_name',
|
|
@@ -1154,6 +1244,40 @@ exports.editorVariables = [
|
|
|
1154
1244
|
'ticket.updated',
|
|
1155
1245
|
],
|
|
1156
1246
|
},
|
|
1247
|
+
{
|
|
1248
|
+
value: 'sender.is_admin',
|
|
1249
|
+
label: 'Sender Is Admin',
|
|
1250
|
+
validTriggers: [
|
|
1251
|
+
'message.created',
|
|
1252
|
+
'message.updated',
|
|
1253
|
+
'reaction.added',
|
|
1254
|
+
'message.flagged',
|
|
1255
|
+
'ticket.created',
|
|
1256
|
+
'ticket.updated',
|
|
1257
|
+
],
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
value: 'sender.is_internal',
|
|
1261
|
+
label: 'Sender Is Internal',
|
|
1262
|
+
validTriggers: [
|
|
1263
|
+
'message.created',
|
|
1264
|
+
'message.updated',
|
|
1265
|
+
'reaction.added',
|
|
1266
|
+
'message.flagged',
|
|
1267
|
+
'ticket.created',
|
|
1268
|
+
'ticket.updated',
|
|
1269
|
+
],
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
label: 'Reaction',
|
|
1273
|
+
value: 'reaction.reaction',
|
|
1274
|
+
validTriggers: ['reaction.added'],
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
value: 'reaction.sender_id',
|
|
1278
|
+
label: 'Reaction Sender Phone',
|
|
1279
|
+
validTriggers: ['reaction.added'],
|
|
1280
|
+
},
|
|
1157
1281
|
{
|
|
1158
1282
|
label: 'Chat Name',
|
|
1159
1283
|
value: 'chat.chat_name',
|
|
@@ -1169,13 +1293,22 @@ exports.editorVariables = [
|
|
|
1169
1293
|
],
|
|
1170
1294
|
},
|
|
1171
1295
|
{
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
validTriggers: [
|
|
1296
|
+
value: 'chat.assigned_to',
|
|
1297
|
+
label: 'Chat Assigned To',
|
|
1298
|
+
validTriggers: [
|
|
1299
|
+
'message.created',
|
|
1300
|
+
'message.updated',
|
|
1301
|
+
'reaction.added',
|
|
1302
|
+
'message.flagged',
|
|
1303
|
+
'chat.created',
|
|
1304
|
+
'chat.label.updated',
|
|
1305
|
+
'ticket.created',
|
|
1306
|
+
'ticket.updated',
|
|
1307
|
+
],
|
|
1175
1308
|
},
|
|
1176
1309
|
{
|
|
1177
|
-
label: 'Chat ID',
|
|
1178
1310
|
value: 'chat.chat_id',
|
|
1311
|
+
label: 'Chat ID',
|
|
1179
1312
|
validTriggers: [
|
|
1180
1313
|
'message.created',
|
|
1181
1314
|
'message.updated',
|
|
@@ -1188,13 +1321,36 @@ exports.editorVariables = [
|
|
|
1188
1321
|
],
|
|
1189
1322
|
},
|
|
1190
1323
|
{
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
validTriggers: [
|
|
1324
|
+
value: 'chat.chat_type',
|
|
1325
|
+
label: 'Chat Type',
|
|
1326
|
+
validTriggers: [
|
|
1327
|
+
'message.created',
|
|
1328
|
+
'message.updated',
|
|
1329
|
+
'reaction.added',
|
|
1330
|
+
'message.flagged',
|
|
1331
|
+
'chat.created',
|
|
1332
|
+
'chat.label.updated',
|
|
1333
|
+
'ticket.created',
|
|
1334
|
+
'ticket.updated',
|
|
1335
|
+
],
|
|
1194
1336
|
},
|
|
1195
1337
|
{
|
|
1196
|
-
value: 'chat.
|
|
1197
|
-
label: 'Chat
|
|
1338
|
+
value: 'chat.org_id',
|
|
1339
|
+
label: 'Chat Org ID',
|
|
1340
|
+
validTriggers: [
|
|
1341
|
+
'message.created',
|
|
1342
|
+
'message.updated',
|
|
1343
|
+
'reaction.added',
|
|
1344
|
+
'message.flagged',
|
|
1345
|
+
'chat.created',
|
|
1346
|
+
'chat.label.updated',
|
|
1347
|
+
'ticket.created',
|
|
1348
|
+
'ticket.updated',
|
|
1349
|
+
],
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
value: 'chat.org_phone',
|
|
1353
|
+
label: 'Chat Org Phone',
|
|
1198
1354
|
validTriggers: [
|
|
1199
1355
|
'message.created',
|
|
1200
1356
|
'message.updated',
|
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,31 +2,6 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
-
graphql_public: {
|
|
6
|
-
Tables: {
|
|
7
|
-
[_ in never]: never;
|
|
8
|
-
};
|
|
9
|
-
Views: {
|
|
10
|
-
[_ in never]: never;
|
|
11
|
-
};
|
|
12
|
-
Functions: {
|
|
13
|
-
graphql: {
|
|
14
|
-
Args: {
|
|
15
|
-
operationName?: string;
|
|
16
|
-
query?: string;
|
|
17
|
-
variables?: Json;
|
|
18
|
-
extensions?: Json;
|
|
19
|
-
};
|
|
20
|
-
Returns: Json;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
Enums: {
|
|
24
|
-
[_ in never]: never;
|
|
25
|
-
};
|
|
26
|
-
CompositeTypes: {
|
|
27
|
-
[_ in never]: never;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
5
|
internal: {
|
|
31
6
|
Tables: {
|
|
32
7
|
config: {
|
|
@@ -1486,13 +1461,6 @@ export type Database = {
|
|
|
1486
1461
|
user_id?: string | null;
|
|
1487
1462
|
};
|
|
1488
1463
|
Relationships: [
|
|
1489
|
-
{
|
|
1490
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1491
|
-
columns: ["user_id"];
|
|
1492
|
-
isOneToOne: false;
|
|
1493
|
-
referencedRelation: "users";
|
|
1494
|
-
referencedColumns: ["id"];
|
|
1495
|
-
},
|
|
1496
1464
|
{
|
|
1497
1465
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1498
1466
|
columns: ["org_id"];
|
|
@@ -1755,69 +1723,15 @@ export type Database = {
|
|
|
1755
1723
|
}
|
|
1756
1724
|
];
|
|
1757
1725
|
};
|
|
1758
|
-
tbl_scheduled_logs: {
|
|
1759
|
-
Row: {
|
|
1760
|
-
chat_id: string | null;
|
|
1761
|
-
created_at: string;
|
|
1762
|
-
delivered_at: string | null;
|
|
1763
|
-
id: number;
|
|
1764
|
-
is_success: boolean | null;
|
|
1765
|
-
org_id: string | null;
|
|
1766
|
-
sent_message_id: string | null;
|
|
1767
|
-
};
|
|
1768
|
-
Insert: {
|
|
1769
|
-
chat_id?: string | null;
|
|
1770
|
-
created_at?: string;
|
|
1771
|
-
delivered_at?: string | null;
|
|
1772
|
-
id?: number;
|
|
1773
|
-
is_success?: boolean | null;
|
|
1774
|
-
org_id?: string | null;
|
|
1775
|
-
sent_message_id?: string | null;
|
|
1776
|
-
};
|
|
1777
|
-
Update: {
|
|
1778
|
-
chat_id?: string | null;
|
|
1779
|
-
created_at?: string;
|
|
1780
|
-
delivered_at?: string | null;
|
|
1781
|
-
id?: number;
|
|
1782
|
-
is_success?: boolean | null;
|
|
1783
|
-
org_id?: string | null;
|
|
1784
|
-
sent_message_id?: string | null;
|
|
1785
|
-
};
|
|
1786
|
-
Relationships: [
|
|
1787
|
-
{
|
|
1788
|
-
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey";
|
|
1789
|
-
columns: ["org_id"];
|
|
1790
|
-
isOneToOne: false;
|
|
1791
|
-
referencedRelation: "tbl_org";
|
|
1792
|
-
referencedColumns: ["org_id"];
|
|
1793
|
-
},
|
|
1794
|
-
{
|
|
1795
|
-
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey";
|
|
1796
|
-
columns: ["org_id"];
|
|
1797
|
-
isOneToOne: false;
|
|
1798
|
-
referencedRelation: "view_org";
|
|
1799
|
-
referencedColumns: ["org_id"];
|
|
1800
|
-
},
|
|
1801
|
-
{
|
|
1802
|
-
foreignKeyName: "tbl_scheduled_message_logs_sent_message_id_fkey";
|
|
1803
|
-
columns: ["sent_message_id"];
|
|
1804
|
-
isOneToOne: false;
|
|
1805
|
-
referencedRelation: "tbl_scheduled_messages";
|
|
1806
|
-
referencedColumns: ["sent_message_id"];
|
|
1807
|
-
}
|
|
1808
|
-
];
|
|
1809
|
-
};
|
|
1810
1726
|
tbl_scheduled_messages: {
|
|
1811
1727
|
Row: {
|
|
1812
1728
|
chat_id: string;
|
|
1813
1729
|
created_at: string;
|
|
1814
|
-
is_repeat: boolean | null;
|
|
1815
1730
|
message_id: string | null;
|
|
1816
1731
|
message_payload: Json | null;
|
|
1817
1732
|
org_id: string;
|
|
1818
1733
|
org_phone: string | null;
|
|
1819
1734
|
performed_by: string | null;
|
|
1820
|
-
repeat_config: Json | null;
|
|
1821
1735
|
scheduled_at: string;
|
|
1822
1736
|
sent_message_id: string;
|
|
1823
1737
|
status: boolean | null;
|
|
@@ -1826,13 +1740,11 @@ export type Database = {
|
|
|
1826
1740
|
Insert: {
|
|
1827
1741
|
chat_id: string;
|
|
1828
1742
|
created_at?: string;
|
|
1829
|
-
is_repeat?: boolean | null;
|
|
1830
1743
|
message_id?: string | null;
|
|
1831
1744
|
message_payload?: Json | null;
|
|
1832
1745
|
org_id: string;
|
|
1833
1746
|
org_phone?: string | null;
|
|
1834
1747
|
performed_by?: string | null;
|
|
1835
|
-
repeat_config?: Json | null;
|
|
1836
1748
|
scheduled_at: string;
|
|
1837
1749
|
sent_message_id: string;
|
|
1838
1750
|
status?: boolean | null;
|
|
@@ -1841,13 +1753,11 @@ export type Database = {
|
|
|
1841
1753
|
Update: {
|
|
1842
1754
|
chat_id?: string;
|
|
1843
1755
|
created_at?: string;
|
|
1844
|
-
is_repeat?: boolean | null;
|
|
1845
1756
|
message_id?: string | null;
|
|
1846
1757
|
message_payload?: Json | null;
|
|
1847
1758
|
org_id?: string;
|
|
1848
1759
|
org_phone?: string | null;
|
|
1849
1760
|
performed_by?: string | null;
|
|
1850
|
-
repeat_config?: Json | null;
|
|
1851
1761
|
scheduled_at?: string;
|
|
1852
1762
|
sent_message_id?: string;
|
|
1853
1763
|
status?: boolean | null;
|
|
@@ -1966,6 +1876,7 @@ export type Database = {
|
|
|
1966
1876
|
};
|
|
1967
1877
|
view_chats: {
|
|
1968
1878
|
Row: {
|
|
1879
|
+
add_members_admins_only: boolean | null;
|
|
1969
1880
|
assigned_to: string | null;
|
|
1970
1881
|
chat_access: Json | null;
|
|
1971
1882
|
chat_id: string | null;
|
|
@@ -1985,7 +1896,6 @@ export type Database = {
|
|
|
1985
1896
|
is_muted: boolean | null;
|
|
1986
1897
|
label_ids: Json | null;
|
|
1987
1898
|
latest_message: Json | null;
|
|
1988
|
-
member_add_mode: string | null;
|
|
1989
1899
|
member_count: number | null;
|
|
1990
1900
|
message_unread_count: number | null;
|
|
1991
1901
|
messages_admins_only: boolean | null;
|
|
@@ -2429,6 +2339,7 @@ export type Database = {
|
|
|
2429
2339
|
owner_id: string | null;
|
|
2430
2340
|
path_tokens: string[] | null;
|
|
2431
2341
|
updated_at: string | null;
|
|
2342
|
+
user_metadata: Json | null;
|
|
2432
2343
|
version: string | null;
|
|
2433
2344
|
};
|
|
2434
2345
|
Insert: {
|
|
@@ -2442,6 +2353,7 @@ export type Database = {
|
|
|
2442
2353
|
owner_id?: string | null;
|
|
2443
2354
|
path_tokens?: string[] | null;
|
|
2444
2355
|
updated_at?: string | null;
|
|
2356
|
+
user_metadata?: Json | null;
|
|
2445
2357
|
version?: string | null;
|
|
2446
2358
|
};
|
|
2447
2359
|
Update: {
|
|
@@ -2455,6 +2367,7 @@ export type Database = {
|
|
|
2455
2367
|
owner_id?: string | null;
|
|
2456
2368
|
path_tokens?: string[] | null;
|
|
2457
2369
|
updated_at?: string | null;
|
|
2370
|
+
user_metadata?: Json | null;
|
|
2458
2371
|
version?: string | null;
|
|
2459
2372
|
};
|
|
2460
2373
|
Relationships: [
|
|
@@ -2476,6 +2389,7 @@ export type Database = {
|
|
|
2476
2389
|
key: string;
|
|
2477
2390
|
owner_id: string | null;
|
|
2478
2391
|
upload_signature: string;
|
|
2392
|
+
user_metadata: Json | null;
|
|
2479
2393
|
version: string;
|
|
2480
2394
|
};
|
|
2481
2395
|
Insert: {
|
|
@@ -2486,6 +2400,7 @@ export type Database = {
|
|
|
2486
2400
|
key: string;
|
|
2487
2401
|
owner_id?: string | null;
|
|
2488
2402
|
upload_signature: string;
|
|
2403
|
+
user_metadata?: Json | null;
|
|
2489
2404
|
version: string;
|
|
2490
2405
|
};
|
|
2491
2406
|
Update: {
|
|
@@ -2496,6 +2411,7 @@ export type Database = {
|
|
|
2496
2411
|
key?: string;
|
|
2497
2412
|
owner_id?: string | null;
|
|
2498
2413
|
upload_signature?: string;
|
|
2414
|
+
user_metadata?: Json | null;
|
|
2499
2415
|
version?: string;
|
|
2500
2416
|
};
|
|
2501
2417
|
Relationships: [
|
|
@@ -2632,6 +2548,10 @@ export type Database = {
|
|
|
2632
2548
|
updated_at: string;
|
|
2633
2549
|
}[];
|
|
2634
2550
|
};
|
|
2551
|
+
operation: {
|
|
2552
|
+
Args: Record<PropertyKey, never>;
|
|
2553
|
+
Returns: string;
|
|
2554
|
+
};
|
|
2635
2555
|
search: {
|
|
2636
2556
|
Args: {
|
|
2637
2557
|
prefix: string;
|
|
@@ -2702,4 +2622,11 @@ export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] |
|
|
|
2702
2622
|
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2703
2623
|
schema: keyof Database;
|
|
2704
2624
|
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2625
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] | {
|
|
2626
|
+
schema: keyof Database;
|
|
2627
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
2628
|
+
schema: keyof Database;
|
|
2629
|
+
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
2630
|
+
schema: keyof Database;
|
|
2631
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
2705
2632
|
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -473,7 +473,7 @@ export type PollResultType = {
|
|
|
473
473
|
export type CreateGroupOptions = {
|
|
474
474
|
messagesAdminsOnly?: boolean;
|
|
475
475
|
infoAdminsOnly?: boolean;
|
|
476
|
-
|
|
476
|
+
addMembersAdminsOnly?: boolean;
|
|
477
477
|
image?: string;
|
|
478
478
|
name?: string;
|
|
479
479
|
description?: string;
|
package/package.json
CHANGED
package/rules.types.ts
CHANGED
|
@@ -1542,8 +1542,8 @@ export const ActionNameMap: Record<
|
|
|
1542
1542
|
],
|
|
1543
1543
|
},
|
|
1544
1544
|
send_slack_notification: {
|
|
1545
|
-
title: 'Send Slack Notification',
|
|
1546
|
-
description: 'Send a slack notification to a channel',
|
|
1545
|
+
title: 'Send Slack Webhook Notification',
|
|
1546
|
+
description: 'Send a slack webhook notification to a channel',
|
|
1547
1547
|
validTriggers: [
|
|
1548
1548
|
'message.created',
|
|
1549
1549
|
'message.updated',
|
|
@@ -1575,16 +1575,70 @@ export const ActionNameMap: Record<
|
|
|
1575
1575
|
},
|
|
1576
1576
|
};
|
|
1577
1577
|
|
|
1578
|
+
type editorVariablesList =
|
|
1579
|
+
| 'chat.assigned_to'
|
|
1580
|
+
| 'chat.chat_id'
|
|
1581
|
+
| 'chat.chat_name'
|
|
1582
|
+
| 'chat.chat_type'
|
|
1583
|
+
| 'chat.org_phone'
|
|
1584
|
+
| 'chat.org_id'
|
|
1585
|
+
| 'chat.group_description'
|
|
1586
|
+
| 'ticket.assignee'
|
|
1587
|
+
| 'ticket.due_date'
|
|
1588
|
+
| 'ticket.priority'
|
|
1589
|
+
| 'ticket.status'
|
|
1590
|
+
| 'ticket.subject'
|
|
1591
|
+
| 'ticket.ticket_id'
|
|
1592
|
+
| 'ticket.raised_by'
|
|
1593
|
+
| 'ticket.created_at'
|
|
1594
|
+
| 'sender.is_internal'
|
|
1595
|
+
| 'sender.is_admin'
|
|
1596
|
+
| 'sender.contact_name'
|
|
1597
|
+
| 'sender.contact_id'
|
|
1598
|
+
| 'reaction.sender_id'
|
|
1599
|
+
| 'reaction.reaction'
|
|
1600
|
+
| 'message.message_id'
|
|
1601
|
+
| 'message.timestamp'
|
|
1602
|
+
| 'message.sender_phone'
|
|
1603
|
+
| 'message.message_type'
|
|
1604
|
+
| 'message.media'
|
|
1605
|
+
| 'message.body';
|
|
1606
|
+
|
|
1578
1607
|
export const editorVariables: Array<{
|
|
1579
1608
|
label: string;
|
|
1580
|
-
value:
|
|
1581
|
-
| keyof typeof MessageVariableNameMap
|
|
1582
|
-
| keyof typeof SenderVariableNameMap
|
|
1583
|
-
| keyof typeof ChatVariableNameMap
|
|
1584
|
-
| keyof typeof TicketVariableNameMap
|
|
1585
|
-
| keyof typeof ReactionVariableNameMap;
|
|
1609
|
+
value: editorVariablesList;
|
|
1586
1610
|
validTriggers: Rule['trigger'][];
|
|
1587
1611
|
}> = [
|
|
1612
|
+
{
|
|
1613
|
+
label: 'Ticket ID',
|
|
1614
|
+
value: 'ticket.ticket_id',
|
|
1615
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
value: 'ticket.assignee',
|
|
1619
|
+
label: 'Ticket Assignee',
|
|
1620
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
value: 'ticket.due_date',
|
|
1624
|
+
label: 'Ticket Due Date',
|
|
1625
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
value: 'ticket.priority',
|
|
1629
|
+
label: 'Ticket Priority',
|
|
1630
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
value: 'ticket.status',
|
|
1634
|
+
label: 'Ticket Status',
|
|
1635
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
value: 'ticket.subject',
|
|
1639
|
+
label: 'Ticket Subject',
|
|
1640
|
+
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
1641
|
+
},
|
|
1588
1642
|
{
|
|
1589
1643
|
label: 'Message Body',
|
|
1590
1644
|
value: 'message.body',
|
|
@@ -1597,6 +1651,66 @@ export const editorVariables: Array<{
|
|
|
1597
1651
|
'ticket.updated',
|
|
1598
1652
|
],
|
|
1599
1653
|
},
|
|
1654
|
+
{
|
|
1655
|
+
value: 'message.media',
|
|
1656
|
+
label: 'Message Media',
|
|
1657
|
+
validTriggers: [
|
|
1658
|
+
'message.created',
|
|
1659
|
+
'message.updated',
|
|
1660
|
+
'reaction.added',
|
|
1661
|
+
'message.flagged',
|
|
1662
|
+
'ticket.created',
|
|
1663
|
+
'ticket.updated',
|
|
1664
|
+
],
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
value: 'message.message_id',
|
|
1668
|
+
label: 'Message ID',
|
|
1669
|
+
validTriggers: [
|
|
1670
|
+
'message.created',
|
|
1671
|
+
'message.updated',
|
|
1672
|
+
'reaction.added',
|
|
1673
|
+
'message.flagged',
|
|
1674
|
+
'ticket.created',
|
|
1675
|
+
'ticket.updated',
|
|
1676
|
+
],
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
value: 'message.message_type',
|
|
1680
|
+
label: 'Message Type',
|
|
1681
|
+
validTriggers: [
|
|
1682
|
+
'message.created',
|
|
1683
|
+
'message.updated',
|
|
1684
|
+
'reaction.added',
|
|
1685
|
+
'message.flagged',
|
|
1686
|
+
'ticket.created',
|
|
1687
|
+
'ticket.updated',
|
|
1688
|
+
],
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
value: 'message.sender_phone',
|
|
1692
|
+
label: 'Sender Phone',
|
|
1693
|
+
validTriggers: [
|
|
1694
|
+
'message.created',
|
|
1695
|
+
'message.updated',
|
|
1696
|
+
'reaction.added',
|
|
1697
|
+
'message.flagged',
|
|
1698
|
+
'ticket.created',
|
|
1699
|
+
'ticket.updated',
|
|
1700
|
+
],
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
value: 'message.timestamp',
|
|
1704
|
+
label: 'Message Timestamp',
|
|
1705
|
+
validTriggers: [
|
|
1706
|
+
'message.created',
|
|
1707
|
+
'message.updated',
|
|
1708
|
+
'reaction.added',
|
|
1709
|
+
'message.flagged',
|
|
1710
|
+
'ticket.created',
|
|
1711
|
+
'ticket.updated',
|
|
1712
|
+
],
|
|
1713
|
+
},
|
|
1600
1714
|
{
|
|
1601
1715
|
label: 'Sender Name',
|
|
1602
1716
|
value: 'sender.contact_name',
|
|
@@ -1609,6 +1723,40 @@ export const editorVariables: Array<{
|
|
|
1609
1723
|
'ticket.updated',
|
|
1610
1724
|
],
|
|
1611
1725
|
},
|
|
1726
|
+
{
|
|
1727
|
+
value: 'sender.is_admin',
|
|
1728
|
+
label: 'Sender Is Admin',
|
|
1729
|
+
validTriggers: [
|
|
1730
|
+
'message.created',
|
|
1731
|
+
'message.updated',
|
|
1732
|
+
'reaction.added',
|
|
1733
|
+
'message.flagged',
|
|
1734
|
+
'ticket.created',
|
|
1735
|
+
'ticket.updated',
|
|
1736
|
+
],
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
value: 'sender.is_internal',
|
|
1740
|
+
label: 'Sender Is Internal',
|
|
1741
|
+
validTriggers: [
|
|
1742
|
+
'message.created',
|
|
1743
|
+
'message.updated',
|
|
1744
|
+
'reaction.added',
|
|
1745
|
+
'message.flagged',
|
|
1746
|
+
'ticket.created',
|
|
1747
|
+
'ticket.updated',
|
|
1748
|
+
],
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
label: 'Reaction',
|
|
1752
|
+
value: 'reaction.reaction',
|
|
1753
|
+
validTriggers: ['reaction.added'],
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
value: 'reaction.sender_id',
|
|
1757
|
+
label: 'Reaction Sender Phone',
|
|
1758
|
+
validTriggers: ['reaction.added'],
|
|
1759
|
+
},
|
|
1612
1760
|
{
|
|
1613
1761
|
label: 'Chat Name',
|
|
1614
1762
|
value: 'chat.chat_name',
|
|
@@ -1624,13 +1772,22 @@ export const editorVariables: Array<{
|
|
|
1624
1772
|
],
|
|
1625
1773
|
},
|
|
1626
1774
|
{
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
validTriggers: [
|
|
1775
|
+
value: 'chat.assigned_to',
|
|
1776
|
+
label: 'Chat Assigned To',
|
|
1777
|
+
validTriggers: [
|
|
1778
|
+
'message.created',
|
|
1779
|
+
'message.updated',
|
|
1780
|
+
'reaction.added',
|
|
1781
|
+
'message.flagged',
|
|
1782
|
+
'chat.created',
|
|
1783
|
+
'chat.label.updated',
|
|
1784
|
+
'ticket.created',
|
|
1785
|
+
'ticket.updated',
|
|
1786
|
+
],
|
|
1630
1787
|
},
|
|
1631
1788
|
{
|
|
1632
|
-
label: 'Chat ID',
|
|
1633
1789
|
value: 'chat.chat_id',
|
|
1790
|
+
label: 'Chat ID',
|
|
1634
1791
|
validTriggers: [
|
|
1635
1792
|
'message.created',
|
|
1636
1793
|
'message.updated',
|
|
@@ -1643,13 +1800,36 @@ export const editorVariables: Array<{
|
|
|
1643
1800
|
],
|
|
1644
1801
|
},
|
|
1645
1802
|
{
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
validTriggers: [
|
|
1803
|
+
value: 'chat.chat_type',
|
|
1804
|
+
label: 'Chat Type',
|
|
1805
|
+
validTriggers: [
|
|
1806
|
+
'message.created',
|
|
1807
|
+
'message.updated',
|
|
1808
|
+
'reaction.added',
|
|
1809
|
+
'message.flagged',
|
|
1810
|
+
'chat.created',
|
|
1811
|
+
'chat.label.updated',
|
|
1812
|
+
'ticket.created',
|
|
1813
|
+
'ticket.updated',
|
|
1814
|
+
],
|
|
1649
1815
|
},
|
|
1650
1816
|
{
|
|
1651
|
-
value: 'chat.
|
|
1652
|
-
label: 'Chat
|
|
1817
|
+
value: 'chat.org_id',
|
|
1818
|
+
label: 'Chat Org ID',
|
|
1819
|
+
validTriggers: [
|
|
1820
|
+
'message.created',
|
|
1821
|
+
'message.updated',
|
|
1822
|
+
'reaction.added',
|
|
1823
|
+
'message.flagged',
|
|
1824
|
+
'chat.created',
|
|
1825
|
+
'chat.label.updated',
|
|
1826
|
+
'ticket.created',
|
|
1827
|
+
'ticket.updated',
|
|
1828
|
+
],
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
value: 'chat.org_phone',
|
|
1832
|
+
label: 'Chat Org Phone',
|
|
1653
1833
|
validTriggers: [
|
|
1654
1834
|
'message.created',
|
|
1655
1835
|
'message.updated',
|
package/supabase.types.ts
CHANGED
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
export type Json = { [key: string]: any } | any
|
|
2
2
|
|
|
3
3
|
export type Database = {
|
|
4
|
-
graphql_public: {
|
|
5
|
-
Tables: {
|
|
6
|
-
[_ in never]: never
|
|
7
|
-
}
|
|
8
|
-
Views: {
|
|
9
|
-
[_ in never]: never
|
|
10
|
-
}
|
|
11
|
-
Functions: {
|
|
12
|
-
graphql: {
|
|
13
|
-
Args: {
|
|
14
|
-
operationName?: string
|
|
15
|
-
query?: string
|
|
16
|
-
variables?: Json
|
|
17
|
-
extensions?: Json
|
|
18
|
-
}
|
|
19
|
-
Returns: Json
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
Enums: {
|
|
23
|
-
[_ in never]: never
|
|
24
|
-
}
|
|
25
|
-
CompositeTypes: {
|
|
26
|
-
[_ in never]: never
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
4
|
internal: {
|
|
30
5
|
Tables: {
|
|
31
6
|
config: {
|
|
@@ -1495,13 +1470,6 @@ export type Database = {
|
|
|
1495
1470
|
user_id?: string | null
|
|
1496
1471
|
}
|
|
1497
1472
|
Relationships: [
|
|
1498
|
-
{
|
|
1499
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1500
|
-
columns: ["user_id"]
|
|
1501
|
-
isOneToOne: false
|
|
1502
|
-
referencedRelation: "users"
|
|
1503
|
-
referencedColumns: ["id"]
|
|
1504
|
-
},
|
|
1505
1473
|
{
|
|
1506
1474
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1507
1475
|
columns: ["org_id"]
|
|
@@ -1764,69 +1732,15 @@ export type Database = {
|
|
|
1764
1732
|
},
|
|
1765
1733
|
]
|
|
1766
1734
|
}
|
|
1767
|
-
tbl_scheduled_logs: {
|
|
1768
|
-
Row: {
|
|
1769
|
-
chat_id: string | null
|
|
1770
|
-
created_at: string
|
|
1771
|
-
delivered_at: string | null
|
|
1772
|
-
id: number
|
|
1773
|
-
is_success: boolean | null
|
|
1774
|
-
org_id: string | null
|
|
1775
|
-
sent_message_id: string | null
|
|
1776
|
-
}
|
|
1777
|
-
Insert: {
|
|
1778
|
-
chat_id?: string | null
|
|
1779
|
-
created_at?: string
|
|
1780
|
-
delivered_at?: string | null
|
|
1781
|
-
id?: number
|
|
1782
|
-
is_success?: boolean | null
|
|
1783
|
-
org_id?: string | null
|
|
1784
|
-
sent_message_id?: string | null
|
|
1785
|
-
}
|
|
1786
|
-
Update: {
|
|
1787
|
-
chat_id?: string | null
|
|
1788
|
-
created_at?: string
|
|
1789
|
-
delivered_at?: string | null
|
|
1790
|
-
id?: number
|
|
1791
|
-
is_success?: boolean | null
|
|
1792
|
-
org_id?: string | null
|
|
1793
|
-
sent_message_id?: string | null
|
|
1794
|
-
}
|
|
1795
|
-
Relationships: [
|
|
1796
|
-
{
|
|
1797
|
-
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey"
|
|
1798
|
-
columns: ["org_id"]
|
|
1799
|
-
isOneToOne: false
|
|
1800
|
-
referencedRelation: "tbl_org"
|
|
1801
|
-
referencedColumns: ["org_id"]
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey"
|
|
1805
|
-
columns: ["org_id"]
|
|
1806
|
-
isOneToOne: false
|
|
1807
|
-
referencedRelation: "view_org"
|
|
1808
|
-
referencedColumns: ["org_id"]
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
foreignKeyName: "tbl_scheduled_message_logs_sent_message_id_fkey"
|
|
1812
|
-
columns: ["sent_message_id"]
|
|
1813
|
-
isOneToOne: false
|
|
1814
|
-
referencedRelation: "tbl_scheduled_messages"
|
|
1815
|
-
referencedColumns: ["sent_message_id"]
|
|
1816
|
-
},
|
|
1817
|
-
]
|
|
1818
|
-
}
|
|
1819
1735
|
tbl_scheduled_messages: {
|
|
1820
1736
|
Row: {
|
|
1821
1737
|
chat_id: string
|
|
1822
1738
|
created_at: string
|
|
1823
|
-
is_repeat: boolean | null
|
|
1824
1739
|
message_id: string | null
|
|
1825
1740
|
message_payload: Json | null
|
|
1826
1741
|
org_id: string
|
|
1827
1742
|
org_phone: string | null
|
|
1828
1743
|
performed_by: string | null
|
|
1829
|
-
repeat_config: Json | null
|
|
1830
1744
|
scheduled_at: string
|
|
1831
1745
|
sent_message_id: string
|
|
1832
1746
|
status: boolean | null
|
|
@@ -1835,13 +1749,11 @@ export type Database = {
|
|
|
1835
1749
|
Insert: {
|
|
1836
1750
|
chat_id: string
|
|
1837
1751
|
created_at?: string
|
|
1838
|
-
is_repeat?: boolean | null
|
|
1839
1752
|
message_id?: string | null
|
|
1840
1753
|
message_payload?: Json | null
|
|
1841
1754
|
org_id: string
|
|
1842
1755
|
org_phone?: string | null
|
|
1843
1756
|
performed_by?: string | null
|
|
1844
|
-
repeat_config?: Json | null
|
|
1845
1757
|
scheduled_at: string
|
|
1846
1758
|
sent_message_id: string
|
|
1847
1759
|
status?: boolean | null
|
|
@@ -1850,13 +1762,11 @@ export type Database = {
|
|
|
1850
1762
|
Update: {
|
|
1851
1763
|
chat_id?: string
|
|
1852
1764
|
created_at?: string
|
|
1853
|
-
is_repeat?: boolean | null
|
|
1854
1765
|
message_id?: string | null
|
|
1855
1766
|
message_payload?: Json | null
|
|
1856
1767
|
org_id?: string
|
|
1857
1768
|
org_phone?: string | null
|
|
1858
1769
|
performed_by?: string | null
|
|
1859
|
-
repeat_config?: Json | null
|
|
1860
1770
|
scheduled_at?: string
|
|
1861
1771
|
sent_message_id?: string
|
|
1862
1772
|
status?: boolean | null
|
|
@@ -1977,6 +1887,7 @@ export type Database = {
|
|
|
1977
1887
|
}
|
|
1978
1888
|
view_chats: {
|
|
1979
1889
|
Row: {
|
|
1890
|
+
add_members_admins_only: boolean | null
|
|
1980
1891
|
assigned_to: string | null
|
|
1981
1892
|
chat_access: Json | null
|
|
1982
1893
|
chat_id: string | null
|
|
@@ -1996,7 +1907,6 @@ export type Database = {
|
|
|
1996
1907
|
is_muted: boolean | null
|
|
1997
1908
|
label_ids: Json | null
|
|
1998
1909
|
latest_message: Json | null
|
|
1999
|
-
member_add_mode: string | null
|
|
2000
1910
|
member_count: number | null
|
|
2001
1911
|
message_unread_count: number | null
|
|
2002
1912
|
messages_admins_only: boolean | null
|
|
@@ -2492,6 +2402,7 @@ export type Database = {
|
|
|
2492
2402
|
owner_id: string | null
|
|
2493
2403
|
path_tokens: string[] | null
|
|
2494
2404
|
updated_at: string | null
|
|
2405
|
+
user_metadata: Json | null
|
|
2495
2406
|
version: string | null
|
|
2496
2407
|
}
|
|
2497
2408
|
Insert: {
|
|
@@ -2505,6 +2416,7 @@ export type Database = {
|
|
|
2505
2416
|
owner_id?: string | null
|
|
2506
2417
|
path_tokens?: string[] | null
|
|
2507
2418
|
updated_at?: string | null
|
|
2419
|
+
user_metadata?: Json | null
|
|
2508
2420
|
version?: string | null
|
|
2509
2421
|
}
|
|
2510
2422
|
Update: {
|
|
@@ -2518,6 +2430,7 @@ export type Database = {
|
|
|
2518
2430
|
owner_id?: string | null
|
|
2519
2431
|
path_tokens?: string[] | null
|
|
2520
2432
|
updated_at?: string | null
|
|
2433
|
+
user_metadata?: Json | null
|
|
2521
2434
|
version?: string | null
|
|
2522
2435
|
}
|
|
2523
2436
|
Relationships: [
|
|
@@ -2539,6 +2452,7 @@ export type Database = {
|
|
|
2539
2452
|
key: string
|
|
2540
2453
|
owner_id: string | null
|
|
2541
2454
|
upload_signature: string
|
|
2455
|
+
user_metadata: Json | null
|
|
2542
2456
|
version: string
|
|
2543
2457
|
}
|
|
2544
2458
|
Insert: {
|
|
@@ -2549,6 +2463,7 @@ export type Database = {
|
|
|
2549
2463
|
key: string
|
|
2550
2464
|
owner_id?: string | null
|
|
2551
2465
|
upload_signature: string
|
|
2466
|
+
user_metadata?: Json | null
|
|
2552
2467
|
version: string
|
|
2553
2468
|
}
|
|
2554
2469
|
Update: {
|
|
@@ -2559,6 +2474,7 @@ export type Database = {
|
|
|
2559
2474
|
key?: string
|
|
2560
2475
|
owner_id?: string | null
|
|
2561
2476
|
upload_signature?: string
|
|
2477
|
+
user_metadata?: Json | null
|
|
2562
2478
|
version?: string
|
|
2563
2479
|
}
|
|
2564
2480
|
Relationships: [
|
|
@@ -2695,6 +2611,10 @@ export type Database = {
|
|
|
2695
2611
|
updated_at: string
|
|
2696
2612
|
}[]
|
|
2697
2613
|
}
|
|
2614
|
+
operation: {
|
|
2615
|
+
Args: Record<PropertyKey, never>
|
|
2616
|
+
Returns: string
|
|
2617
|
+
}
|
|
2698
2618
|
search: {
|
|
2699
2619
|
Args: {
|
|
2700
2620
|
prefix: string
|
|
@@ -2806,3 +2726,20 @@ export type Enums<
|
|
|
2806
2726
|
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
|
2807
2727
|
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
2808
2728
|
: never
|
|
2729
|
+
|
|
2730
|
+
export type CompositeTypes<
|
|
2731
|
+
PublicCompositeTypeNameOrOptions extends
|
|
2732
|
+
| keyof PublicSchema["CompositeTypes"]
|
|
2733
|
+
| { schema: keyof Database },
|
|
2734
|
+
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
2735
|
+
schema: keyof Database
|
|
2736
|
+
}
|
|
2737
|
+
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
2738
|
+
: never = never,
|
|
2739
|
+
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
|
2740
|
+
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
2741
|
+
: PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"]
|
|
2742
|
+
? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
2743
|
+
: never
|
|
2744
|
+
|
|
2745
|
+
|
package/types.ts
CHANGED
|
@@ -640,7 +640,7 @@ export type PollResultType = {
|
|
|
640
640
|
export type CreateGroupOptions = {
|
|
641
641
|
messagesAdminsOnly?: boolean;
|
|
642
642
|
infoAdminsOnly?: boolean;
|
|
643
|
-
|
|
643
|
+
addMembersAdminsOnly?: boolean;
|
|
644
644
|
image?: string;
|
|
645
645
|
name?: string;
|
|
646
646
|
description?: string;
|