@periskope/types 0.6.440 → 0.6.442
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/.turbo/daemon/2a480df21ee2b3e0-turbo.log.2025-07-29 +1 -0
- package/.turbo/daemon/2a480df21ee2b3e0-turbo.log.2025-11-10 +0 -0
- package/dist/rules.types.d.ts +33 -4
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +175 -1
- package/package.json +1 -1
- package/src/rules.types.ts +728 -508
- package/tsconfig.tsbuildinfo +1 -0
package/src/rules.types.ts
CHANGED
|
@@ -63,7 +63,10 @@ export type TicketRulesInfoType = Merge<
|
|
|
63
63
|
>,
|
|
64
64
|
{
|
|
65
65
|
id: 'ticket.ticket_id';
|
|
66
|
-
type:
|
|
66
|
+
type:
|
|
67
|
+
| `ticket.${'created' | 'updated' | 'closed'}`
|
|
68
|
+
| 'ticket.label.updated'
|
|
69
|
+
| 'ticket.message.attached';
|
|
67
70
|
org_id: string;
|
|
68
71
|
rule: Tables<'tbl_automation_rules'>[];
|
|
69
72
|
}
|
|
@@ -74,28 +77,28 @@ export type TaskRulesInfoType<
|
|
|
74
77
|
> = Merge<
|
|
75
78
|
AppendTypes<
|
|
76
79
|
T extends 'message'
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
80
|
+
? {
|
|
81
|
+
task: TaskVariablesType;
|
|
82
|
+
message: MessageVariablesType;
|
|
83
|
+
sender: SenderVariablesType;
|
|
84
|
+
chat: ChatVariablesType;
|
|
85
|
+
}
|
|
86
|
+
: T extends 'chat'
|
|
87
|
+
? {
|
|
88
|
+
task: TaskVariablesType;
|
|
89
|
+
chat: ChatVariablesType;
|
|
90
|
+
}
|
|
91
|
+
: T extends 'ticket'
|
|
92
|
+
? {
|
|
93
|
+
task: TaskVariablesType;
|
|
94
|
+
ticket: TicketVariablesType;
|
|
95
|
+
message: MessageVariablesType;
|
|
96
|
+
sender: SenderVariablesType;
|
|
97
|
+
chat: ChatVariablesType;
|
|
98
|
+
}
|
|
99
|
+
: {
|
|
100
|
+
task: TaskVariablesType;
|
|
101
|
+
},
|
|
99
102
|
'.'
|
|
100
103
|
>,
|
|
101
104
|
{
|
|
@@ -182,21 +185,21 @@ export type RuleInfoType =
|
|
|
182
185
|
export interface Filter {
|
|
183
186
|
id: string;
|
|
184
187
|
condition:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
188
|
+
| 'CONTAINS'
|
|
189
|
+
| 'NCONTAINS'
|
|
190
|
+
| 'EQ'
|
|
191
|
+
| 'NEQ'
|
|
192
|
+
| 'LT'
|
|
193
|
+
| 'LTE'
|
|
194
|
+
| 'GT'
|
|
195
|
+
| 'GTE'
|
|
196
|
+
| 'KNOWN'
|
|
197
|
+
| 'NKNOWN'
|
|
198
|
+
| 'IS'
|
|
199
|
+
| 'NIS'
|
|
200
|
+
| 'ON'
|
|
201
|
+
| 'STARTS_WITH'
|
|
202
|
+
| 'ENDS_WITH'; // Add other condition types as needed
|
|
200
203
|
variable: string;
|
|
201
204
|
value: string | string[];
|
|
202
205
|
variable_type?: 'string' | 'number' | 'boolean' | 'day-time' | 'date' | 'day'; // Optional, like 'Date'
|
|
@@ -284,32 +287,32 @@ export const FilterNameMap: Record<
|
|
|
284
287
|
export type VariableNameValueType = {
|
|
285
288
|
text: string;
|
|
286
289
|
type:
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
290
|
+
| 'string'
|
|
291
|
+
| 'time'
|
|
292
|
+
| 'boolean'
|
|
293
|
+
| 'dropdown'
|
|
294
|
+
| 'day-time'
|
|
295
|
+
| 'number'
|
|
296
|
+
| 'date';
|
|
294
297
|
variable_type: 'string' | 'number' | 'boolean' | 'day-time' | 'date';
|
|
295
298
|
value?:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
| string
|
|
300
|
+
| {
|
|
301
|
+
id: string;
|
|
302
|
+
value: string | number | boolean;
|
|
303
|
+
label: string;
|
|
304
|
+
}[]
|
|
305
|
+
| null;
|
|
303
306
|
filters:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
307
|
+
| Partial<
|
|
308
|
+
Record<
|
|
309
|
+
Filter['condition'],
|
|
310
|
+
{
|
|
311
|
+
info?: string;
|
|
312
|
+
}
|
|
313
|
+
>
|
|
314
|
+
>
|
|
315
|
+
| Filter['condition'][];
|
|
313
316
|
hidden?: boolean;
|
|
314
317
|
placeholder?: string;
|
|
315
318
|
info?: string;
|
|
@@ -1165,13 +1168,30 @@ export type SendMessageAction = {
|
|
|
1165
1168
|
maintain_flag_status: 'true' | 'false';
|
|
1166
1169
|
debounce_messages: 'true' | 'false';
|
|
1167
1170
|
debounce_message_time:
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
+
| `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`
|
|
1172
|
+
| null
|
|
1173
|
+
| undefined;
|
|
1171
1174
|
};
|
|
1172
1175
|
delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
|
|
1173
1176
|
};
|
|
1174
1177
|
|
|
1178
|
+
export type SendPollOptionAction = {
|
|
1179
|
+
id: string;
|
|
1180
|
+
type: 'send_poll_message';
|
|
1181
|
+
delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
|
|
1182
|
+
metadata: {
|
|
1183
|
+
message: string;
|
|
1184
|
+
options: string[];
|
|
1185
|
+
allow_multiple_votes: 'true' | 'false';
|
|
1186
|
+
maintain_flag_status: 'true' | 'false';
|
|
1187
|
+
debounce_messages: 'true' | 'false';
|
|
1188
|
+
debounce_message_time:
|
|
1189
|
+
| `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`
|
|
1190
|
+
| null
|
|
1191
|
+
| undefined;
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1175
1195
|
export type NotifyHttpAction = {
|
|
1176
1196
|
id: string;
|
|
1177
1197
|
type: 'notify_http';
|
|
@@ -1233,6 +1253,15 @@ export type AddChatLabelAction = {
|
|
|
1233
1253
|
};
|
|
1234
1254
|
};
|
|
1235
1255
|
|
|
1256
|
+
export type RemoveChatLabelAction = {
|
|
1257
|
+
id: string;
|
|
1258
|
+
type: 'remove_chat_label';
|
|
1259
|
+
delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
|
|
1260
|
+
metadata: {
|
|
1261
|
+
label: string;
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1236
1265
|
export type AddTicketLabelAction = {
|
|
1237
1266
|
id: string;
|
|
1238
1267
|
type: 'add_ticket_label';
|
|
@@ -1242,6 +1271,15 @@ export type AddTicketLabelAction = {
|
|
|
1242
1271
|
};
|
|
1243
1272
|
};
|
|
1244
1273
|
|
|
1274
|
+
export type RemoveTicketLabelAction = {
|
|
1275
|
+
id: string;
|
|
1276
|
+
type: 'remove_ticket_label';
|
|
1277
|
+
delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
|
|
1278
|
+
metadata: {
|
|
1279
|
+
label: string;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1245
1283
|
export type SetTicketDueDateAction = {
|
|
1246
1284
|
id: string;
|
|
1247
1285
|
type: 'set_ticket_due_date';
|
|
@@ -1297,9 +1335,9 @@ export type ReplyToMessageAction = {
|
|
|
1297
1335
|
maintain_flag_status: 'true' | 'false';
|
|
1298
1336
|
debounce_messages: 'true' | 'false';
|
|
1299
1337
|
debounce_message_time:
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1338
|
+
| `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`
|
|
1339
|
+
| null
|
|
1340
|
+
| undefined;
|
|
1303
1341
|
};
|
|
1304
1342
|
};
|
|
1305
1343
|
|
|
@@ -1415,7 +1453,10 @@ export type Action =
|
|
|
1415
1453
|
| SendMessageToChatAction
|
|
1416
1454
|
| FreshdeskCreateTicketAction
|
|
1417
1455
|
| HubspotCreateTicketAction
|
|
1418
|
-
| ZohodeskCreateTicketAction
|
|
1456
|
+
| ZohodeskCreateTicketAction
|
|
1457
|
+
| SendPollOptionAction
|
|
1458
|
+
| RemoveChatLabelAction
|
|
1459
|
+
| RemoveTicketLabelAction;
|
|
1419
1460
|
|
|
1420
1461
|
export const isSendMessageOrReplyToMessageAction = (
|
|
1421
1462
|
action: Action
|
|
@@ -1423,7 +1464,8 @@ export const isSendMessageOrReplyToMessageAction = (
|
|
|
1423
1464
|
return ['send_message', 'reply_to_message'].includes(action.type);
|
|
1424
1465
|
};
|
|
1425
1466
|
|
|
1426
|
-
export type TriggerRuleType =
|
|
1467
|
+
export type TriggerRuleType =
|
|
1468
|
+
| 'message.created'
|
|
1427
1469
|
| 'message.updated'
|
|
1428
1470
|
| 'chat.created'
|
|
1429
1471
|
| 'ticket.updated'
|
|
@@ -1439,6 +1481,7 @@ export type TriggerRuleType = | 'message.created'
|
|
|
1439
1481
|
| 'task.assignee.updated'
|
|
1440
1482
|
| 'call.created'
|
|
1441
1483
|
| 'member.joined'
|
|
1484
|
+
| 'ticket.message.attached';
|
|
1442
1485
|
|
|
1443
1486
|
export type Rule = OverrideProperties<
|
|
1444
1487
|
Tables<'tbl_automation_rules'>,
|
|
@@ -1571,6 +1614,13 @@ export const RuleNameMap: Record<
|
|
|
1571
1614
|
org_phone: true,
|
|
1572
1615
|
},
|
|
1573
1616
|
},
|
|
1617
|
+
'ticket.message.attached': {
|
|
1618
|
+
title: 'Message Attached to Ticket',
|
|
1619
|
+
description: 'When a message is attached to a ticket',
|
|
1620
|
+
base_conditions: {
|
|
1621
|
+
org_phone: false,
|
|
1622
|
+
},
|
|
1623
|
+
},
|
|
1574
1624
|
};
|
|
1575
1625
|
|
|
1576
1626
|
export type ValidateFunction<T extends any[] = any[]> = (...args: T) => boolean;
|
|
@@ -1590,29 +1640,31 @@ type ActionNameMapType = {
|
|
|
1590
1640
|
{
|
|
1591
1641
|
id: string;
|
|
1592
1642
|
type:
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1643
|
+
| 'text'
|
|
1644
|
+
| 'dropdown'
|
|
1645
|
+
| 'editor'
|
|
1646
|
+
| 'date'
|
|
1647
|
+
| 'file'
|
|
1648
|
+
| 'textarea'
|
|
1649
|
+
| 'dynamic'
|
|
1650
|
+
| 'json_editor'
|
|
1651
|
+
| 'multi_text'
|
|
1652
|
+
| 'checkbox';
|
|
1601
1653
|
value:
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1654
|
+
| 'ticket.labels'
|
|
1655
|
+
| 'org.members'
|
|
1656
|
+
| 'chat.labels'
|
|
1657
|
+
| 'org.chats'
|
|
1658
|
+
| {
|
|
1659
|
+
id: string;
|
|
1660
|
+
value: string;
|
|
1661
|
+
label: string;
|
|
1662
|
+
}[]
|
|
1663
|
+
| null
|
|
1664
|
+
| 'org.custom_properties.chat'
|
|
1665
|
+
| 'org.custom_properties.ticket'
|
|
1666
|
+
| 'custom_property_values'
|
|
1667
|
+
| 'custom_duration';
|
|
1616
1668
|
label: string;
|
|
1617
1669
|
placeholder: string;
|
|
1618
1670
|
info?: string;
|
|
@@ -1621,8 +1673,8 @@ type ActionNameMapType = {
|
|
|
1621
1673
|
}
|
|
1622
1674
|
>;
|
|
1623
1675
|
validate: K extends keyof ValidateArgsMap
|
|
1624
|
-
|
|
1625
|
-
|
|
1676
|
+
? ValidateFunction<ValidateArgsMap[K]>
|
|
1677
|
+
: ValidateFunction<never[]>;
|
|
1626
1678
|
info?: string;
|
|
1627
1679
|
validTriggers: TriggerRuleType[];
|
|
1628
1680
|
};
|
|
@@ -1698,6 +1750,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
1698
1750
|
'task.assignee.updated',
|
|
1699
1751
|
'ticket.label.updated',
|
|
1700
1752
|
'member.joined',
|
|
1753
|
+
'ticket.message.attached',
|
|
1701
1754
|
],
|
|
1702
1755
|
validate: () => true,
|
|
1703
1756
|
},
|
|
@@ -1765,6 +1818,89 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
1765
1818
|
'task.created',
|
|
1766
1819
|
'task.assignee.updated',
|
|
1767
1820
|
'ticket.label.updated',
|
|
1821
|
+
'ticket.message.attached',
|
|
1822
|
+
],
|
|
1823
|
+
validate: () => true,
|
|
1824
|
+
},
|
|
1825
|
+
|
|
1826
|
+
send_poll_message: {
|
|
1827
|
+
title: 'Send Poll Message',
|
|
1828
|
+
description: 'Send a poll',
|
|
1829
|
+
inputs: {
|
|
1830
|
+
message: {
|
|
1831
|
+
id: 'message',
|
|
1832
|
+
type: 'editor',
|
|
1833
|
+
label: 'Question',
|
|
1834
|
+
placeholder: 'Type your question here...',
|
|
1835
|
+
required: true,
|
|
1836
|
+
value: null,
|
|
1837
|
+
},
|
|
1838
|
+
options: {
|
|
1839
|
+
id: 'options',
|
|
1840
|
+
type: 'multi_text',
|
|
1841
|
+
label: 'Options',
|
|
1842
|
+
placeholder: 'Add',
|
|
1843
|
+
required: true,
|
|
1844
|
+
value: null,
|
|
1845
|
+
},
|
|
1846
|
+
allow_multiple_votes: {
|
|
1847
|
+
id: 'allowMultipleVotes',
|
|
1848
|
+
type: 'checkbox',
|
|
1849
|
+
label: 'Allow Multiple Votes',
|
|
1850
|
+
placeholder: 'Select...',
|
|
1851
|
+
value: null,
|
|
1852
|
+
required: false,
|
|
1853
|
+
},
|
|
1854
|
+
maintain_flag_status: {
|
|
1855
|
+
id: 'maintain_flag_status',
|
|
1856
|
+
type: 'dropdown',
|
|
1857
|
+
label: 'Maintain Flag Status',
|
|
1858
|
+
placeholder: 'Select...',
|
|
1859
|
+
value: [
|
|
1860
|
+
{ id: 'true', value: 'true', label: 'True' },
|
|
1861
|
+
{ id: 'false', value: 'false', label: 'False' },
|
|
1862
|
+
],
|
|
1863
|
+
required: true,
|
|
1864
|
+
},
|
|
1865
|
+
debounce_messages: {
|
|
1866
|
+
id: 'debounce_messages',
|
|
1867
|
+
type: 'dropdown',
|
|
1868
|
+
label: 'Enable Cooldown Period',
|
|
1869
|
+
placeholder: 'Select...',
|
|
1870
|
+
value: [
|
|
1871
|
+
{ id: 'true', value: 'true', label: 'True' },
|
|
1872
|
+
{ id: 'false', value: 'false', label: 'False' },
|
|
1873
|
+
],
|
|
1874
|
+
info: 'If enabled, only one message per chat will be sent in the specified cooldown period',
|
|
1875
|
+
required: false,
|
|
1876
|
+
},
|
|
1877
|
+
debounce_message_time: {
|
|
1878
|
+
id: 'debounce_message_time',
|
|
1879
|
+
type: 'dynamic',
|
|
1880
|
+
label: 'Cooldown Period',
|
|
1881
|
+
placeholder: 'Enter time',
|
|
1882
|
+
value: 'custom_duration',
|
|
1883
|
+
required: false,
|
|
1884
|
+
},
|
|
1885
|
+
},
|
|
1886
|
+
validTriggers: [
|
|
1887
|
+
'message.created',
|
|
1888
|
+
'call.created',
|
|
1889
|
+
'message.updated',
|
|
1890
|
+
'chat.created',
|
|
1891
|
+
'ticket.updated',
|
|
1892
|
+
'ticket.created',
|
|
1893
|
+
'reaction.added',
|
|
1894
|
+
'message.flagged',
|
|
1895
|
+
'message.unflagged',
|
|
1896
|
+
'chat.label.updated',
|
|
1897
|
+
'message.deleted',
|
|
1898
|
+
'ticket.closed',
|
|
1899
|
+
'task.created',
|
|
1900
|
+
'task.assignee.updated',
|
|
1901
|
+
'ticket.label.updated',
|
|
1902
|
+
'member.joined',
|
|
1903
|
+
'ticket.message.attached',
|
|
1768
1904
|
],
|
|
1769
1905
|
validate: () => true,
|
|
1770
1906
|
},
|
|
@@ -1782,6 +1918,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
1782
1918
|
'ticket.closed',
|
|
1783
1919
|
'message.unflagged',
|
|
1784
1920
|
'ticket.label.updated',
|
|
1921
|
+
'ticket.message.attached',
|
|
1785
1922
|
],
|
|
1786
1923
|
validate: () => true,
|
|
1787
1924
|
},
|
|
@@ -1847,6 +1984,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
1847
1984
|
'task.assignee.updated',
|
|
1848
1985
|
'ticket.label.updated',
|
|
1849
1986
|
'member.joined',
|
|
1987
|
+
'ticket.message.attached',
|
|
1850
1988
|
],
|
|
1851
1989
|
validate: () => true,
|
|
1852
1990
|
},
|
|
@@ -1984,6 +2122,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
1984
2122
|
'task.created',
|
|
1985
2123
|
'task.assignee.updated',
|
|
1986
2124
|
'ticket.label.updated',
|
|
2125
|
+
'ticket.message.attached',
|
|
1987
2126
|
],
|
|
1988
2127
|
validate: () => true,
|
|
1989
2128
|
},
|
|
@@ -2050,6 +2189,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2050
2189
|
'task.created',
|
|
2051
2190
|
'task.assignee.updated',
|
|
2052
2191
|
'ticket.label.updated',
|
|
2192
|
+
'ticket.message.attached',
|
|
2053
2193
|
],
|
|
2054
2194
|
validate: () => true,
|
|
2055
2195
|
},
|
|
@@ -2074,6 +2214,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2074
2214
|
'message.unflagged',
|
|
2075
2215
|
'message.deleted',
|
|
2076
2216
|
'ticket.label.updated',
|
|
2217
|
+
'ticket.message.attached',
|
|
2077
2218
|
],
|
|
2078
2219
|
validate: () => true,
|
|
2079
2220
|
},
|
|
@@ -2104,6 +2245,38 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2104
2245
|
'message.unflagged',
|
|
2105
2246
|
'ticket.closed',
|
|
2106
2247
|
'member.joined',
|
|
2248
|
+
'ticket.message.attached',
|
|
2249
|
+
],
|
|
2250
|
+
validate: () => true,
|
|
2251
|
+
},
|
|
2252
|
+
remove_chat_label: {
|
|
2253
|
+
title: 'Remove Chat Label',
|
|
2254
|
+
description: 'Remove a label from a chat',
|
|
2255
|
+
inputs: {
|
|
2256
|
+
label: {
|
|
2257
|
+
id: 'label',
|
|
2258
|
+
type: 'dropdown',
|
|
2259
|
+
value: 'chat.labels',
|
|
2260
|
+
label: 'Label',
|
|
2261
|
+
placeholder: 'Select label',
|
|
2262
|
+
required: true,
|
|
2263
|
+
},
|
|
2264
|
+
},
|
|
2265
|
+
validTriggers: [
|
|
2266
|
+
'message.created',
|
|
2267
|
+
'call.created',
|
|
2268
|
+
'message.updated',
|
|
2269
|
+
'chat.created',
|
|
2270
|
+
'ticket.updated',
|
|
2271
|
+
'ticket.created',
|
|
2272
|
+
'reaction.added',
|
|
2273
|
+
'chat.label.updated',
|
|
2274
|
+
'message.flagged',
|
|
2275
|
+
'message.deleted',
|
|
2276
|
+
'message.unflagged',
|
|
2277
|
+
'ticket.closed',
|
|
2278
|
+
'member.joined',
|
|
2279
|
+
'ticket.message.attached',
|
|
2107
2280
|
],
|
|
2108
2281
|
validate: () => true,
|
|
2109
2282
|
},
|
|
@@ -2120,7 +2293,33 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2120
2293
|
required: true,
|
|
2121
2294
|
},
|
|
2122
2295
|
},
|
|
2123
|
-
validTriggers: [
|
|
2296
|
+
validTriggers: [
|
|
2297
|
+
'ticket.updated',
|
|
2298
|
+
'ticket.created',
|
|
2299
|
+
'ticket.label.updated',
|
|
2300
|
+
'ticket.message.attached',
|
|
2301
|
+
],
|
|
2302
|
+
validate: () => true,
|
|
2303
|
+
},
|
|
2304
|
+
remove_ticket_label: {
|
|
2305
|
+
title: 'Remove Ticket Label',
|
|
2306
|
+
description: 'Remove a label from a ticket',
|
|
2307
|
+
inputs: {
|
|
2308
|
+
label: {
|
|
2309
|
+
id: 'label',
|
|
2310
|
+
type: 'dropdown',
|
|
2311
|
+
value: 'ticket.labels',
|
|
2312
|
+
label: 'Label',
|
|
2313
|
+
placeholder: 'Select label',
|
|
2314
|
+
required: true,
|
|
2315
|
+
},
|
|
2316
|
+
},
|
|
2317
|
+
validTriggers: [
|
|
2318
|
+
'ticket.updated',
|
|
2319
|
+
'ticket.created',
|
|
2320
|
+
'ticket.label.updated',
|
|
2321
|
+
'ticket.message.attached',
|
|
2322
|
+
],
|
|
2124
2323
|
validate: () => true,
|
|
2125
2324
|
},
|
|
2126
2325
|
set_ticket_due_date: {
|
|
@@ -2142,6 +2341,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2142
2341
|
'reaction.added',
|
|
2143
2342
|
'ticket.label.updated',
|
|
2144
2343
|
'ticket.closed',
|
|
2344
|
+
'ticket.message.attached',
|
|
2145
2345
|
],
|
|
2146
2346
|
validate: () => true,
|
|
2147
2347
|
},
|
|
@@ -2163,6 +2363,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2163
2363
|
'ticket.closed',
|
|
2164
2364
|
'ticket.label.updated',
|
|
2165
2365
|
'member.joined',
|
|
2366
|
+
'ticket.message.attached',
|
|
2166
2367
|
],
|
|
2167
2368
|
inputs: {
|
|
2168
2369
|
property_id: {
|
|
@@ -2193,6 +2394,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2193
2394
|
'reaction.added',
|
|
2194
2395
|
'ticket.closed',
|
|
2195
2396
|
'ticket.label.updated',
|
|
2397
|
+
'ticket.message.attached',
|
|
2196
2398
|
],
|
|
2197
2399
|
inputs: {
|
|
2198
2400
|
property_id: {
|
|
@@ -2287,6 +2489,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2287
2489
|
'task.assignee.updated',
|
|
2288
2490
|
'ticket.label.updated',
|
|
2289
2491
|
'member.joined',
|
|
2492
|
+
'ticket.message.attached',
|
|
2290
2493
|
],
|
|
2291
2494
|
validate: () => true,
|
|
2292
2495
|
},
|
|
@@ -2309,6 +2512,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2309
2512
|
'ticket.closed',
|
|
2310
2513
|
'ticket.label.updated',
|
|
2311
2514
|
'member.joined',
|
|
2515
|
+
'ticket.message.attached',
|
|
2312
2516
|
],
|
|
2313
2517
|
validate: () => true,
|
|
2314
2518
|
},
|
|
@@ -2387,6 +2591,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2387
2591
|
'task.assignee.updated',
|
|
2388
2592
|
'ticket.label.updated',
|
|
2389
2593
|
'member.joined',
|
|
2594
|
+
'ticket.message.attached',
|
|
2390
2595
|
],
|
|
2391
2596
|
validate: () => true,
|
|
2392
2597
|
},
|
|
@@ -2410,6 +2615,7 @@ export const ActionNameMap: ActionNameMapType = {
|
|
|
2410
2615
|
'task.created',
|
|
2411
2616
|
'task.assignee.updated',
|
|
2412
2617
|
'member.joined',
|
|
2618
|
+
'ticket.message.attached',
|
|
2413
2619
|
],
|
|
2414
2620
|
inputs: {
|
|
2415
2621
|
webhook_url: {
|
|
@@ -2571,417 +2777,430 @@ export const editorVariables: Array<{
|
|
|
2571
2777
|
value: editorVariablesList;
|
|
2572
2778
|
validTriggers: Rule['trigger'][];
|
|
2573
2779
|
}> = [
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
label
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
label
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
label
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
label
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2780
|
+
{
|
|
2781
|
+
label: 'Ticket ID',
|
|
2782
|
+
value: 'ticket.ticket_id',
|
|
2783
|
+
validTriggers: [
|
|
2784
|
+
'ticket.updated',
|
|
2785
|
+
'ticket.created',
|
|
2786
|
+
'ticket.closed',
|
|
2787
|
+
'ticket.label.updated',
|
|
2788
|
+
'ticket.message.attached',
|
|
2789
|
+
],
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
value: 'ticket.assignee',
|
|
2793
|
+
label: 'Ticket Assignee',
|
|
2794
|
+
validTriggers: [
|
|
2795
|
+
'ticket.updated',
|
|
2796
|
+
'ticket.created',
|
|
2797
|
+
'ticket.closed',
|
|
2798
|
+
'ticket.label.updated',
|
|
2799
|
+
'ticket.message.attached',
|
|
2800
|
+
],
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
value: 'ticket.due_date',
|
|
2804
|
+
label: 'Ticket Due Date',
|
|
2805
|
+
validTriggers: [
|
|
2806
|
+
'ticket.updated',
|
|
2807
|
+
'ticket.created',
|
|
2808
|
+
'ticket.closed',
|
|
2809
|
+
'ticket.label.updated',
|
|
2810
|
+
'ticket.message.attached',
|
|
2811
|
+
],
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
value: 'ticket.priority',
|
|
2815
|
+
label: 'Ticket Priority',
|
|
2816
|
+
validTriggers: [
|
|
2817
|
+
'ticket.updated',
|
|
2818
|
+
'ticket.created',
|
|
2819
|
+
'ticket.closed',
|
|
2820
|
+
'ticket.label.updated',
|
|
2821
|
+
'ticket.message.attached',
|
|
2822
|
+
],
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
value: 'ticket.status',
|
|
2826
|
+
label: 'Ticket Status',
|
|
2827
|
+
validTriggers: [
|
|
2828
|
+
'ticket.updated',
|
|
2829
|
+
'ticket.created',
|
|
2830
|
+
'ticket.closed',
|
|
2831
|
+
'ticket.label.updated',
|
|
2832
|
+
'ticket.message.attached',
|
|
2833
|
+
],
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
value: 'ticket.subject',
|
|
2837
|
+
label: 'Ticket Subject',
|
|
2838
|
+
validTriggers: [
|
|
2839
|
+
'ticket.updated',
|
|
2840
|
+
'ticket.created',
|
|
2841
|
+
'ticket.closed',
|
|
2842
|
+
'ticket.label.updated',
|
|
2843
|
+
'ticket.message.attached',
|
|
2844
|
+
],
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
label: 'Message Body',
|
|
2848
|
+
value: 'message.body',
|
|
2849
|
+
validTriggers: [
|
|
2850
|
+
'message.created',
|
|
2851
|
+
'message.updated',
|
|
2852
|
+
'reaction.added',
|
|
2853
|
+
'message.flagged',
|
|
2854
|
+
'ticket.created',
|
|
2855
|
+
'ticket.updated',
|
|
2856
|
+
'ticket.closed',
|
|
2857
|
+
'ticket.label.updated',
|
|
2858
|
+
'message.deleted',
|
|
2859
|
+
'task.created',
|
|
2860
|
+
'task.assignee.updated',
|
|
2861
|
+
],
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
value: 'message.media',
|
|
2865
|
+
label: 'Message Media',
|
|
2866
|
+
validTriggers: [
|
|
2867
|
+
'message.created',
|
|
2868
|
+
'message.updated',
|
|
2869
|
+
'reaction.added',
|
|
2870
|
+
'message.flagged',
|
|
2871
|
+
'ticket.created',
|
|
2872
|
+
'ticket.updated',
|
|
2873
|
+
'ticket.closed',
|
|
2874
|
+
'ticket.label.updated',
|
|
2875
|
+
'message.deleted',
|
|
2876
|
+
],
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
value: 'message.message_id',
|
|
2880
|
+
label: 'Message ID',
|
|
2881
|
+
validTriggers: [
|
|
2882
|
+
'message.created',
|
|
2883
|
+
'message.updated',
|
|
2884
|
+
'reaction.added',
|
|
2885
|
+
'message.flagged',
|
|
2886
|
+
'ticket.created',
|
|
2887
|
+
'ticket.updated',
|
|
2888
|
+
'ticket.closed',
|
|
2889
|
+
'ticket.label.updated',
|
|
2890
|
+
'message.deleted',
|
|
2891
|
+
],
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
value: 'message.message_type',
|
|
2895
|
+
label: 'Message Type',
|
|
2896
|
+
validTriggers: [
|
|
2897
|
+
'message.created',
|
|
2898
|
+
'message.updated',
|
|
2899
|
+
'reaction.added',
|
|
2900
|
+
'message.flagged',
|
|
2901
|
+
'ticket.created',
|
|
2902
|
+
'ticket.updated',
|
|
2903
|
+
'ticket.closed',
|
|
2904
|
+
'ticket.label.updated',
|
|
2905
|
+
'message.deleted',
|
|
2906
|
+
'task.created',
|
|
2907
|
+
'task.assignee.updated',
|
|
2908
|
+
],
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
value: 'message.sender_phone',
|
|
2912
|
+
label: 'Sender Phone',
|
|
2913
|
+
validTriggers: [
|
|
2914
|
+
'message.created',
|
|
2915
|
+
'message.updated',
|
|
2916
|
+
'reaction.added',
|
|
2917
|
+
'message.flagged',
|
|
2918
|
+
'ticket.created',
|
|
2919
|
+
'ticket.updated',
|
|
2920
|
+
'ticket.closed',
|
|
2921
|
+
'ticket.label.updated',
|
|
2922
|
+
'message.deleted',
|
|
2923
|
+
],
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
value: 'message.timestamp',
|
|
2927
|
+
label: 'Message Timestamp',
|
|
2928
|
+
validTriggers: [
|
|
2929
|
+
'message.created',
|
|
2930
|
+
'message.updated',
|
|
2931
|
+
'reaction.added',
|
|
2932
|
+
'message.flagged',
|
|
2933
|
+
'ticket.created',
|
|
2934
|
+
'ticket.updated',
|
|
2935
|
+
'ticket.closed',
|
|
2936
|
+
'ticket.label.updated',
|
|
2937
|
+
'message.deleted',
|
|
2938
|
+
'task.created',
|
|
2939
|
+
'task.assignee.updated',
|
|
2940
|
+
],
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
value: 'sender.contact_name',
|
|
2944
|
+
label: 'Sender Name',
|
|
2945
|
+
validTriggers: [
|
|
2946
|
+
'message.created',
|
|
2947
|
+
'message.updated',
|
|
2948
|
+
'reaction.added',
|
|
2949
|
+
'message.flagged',
|
|
2950
|
+
'ticket.created',
|
|
2951
|
+
'ticket.updated',
|
|
2952
|
+
'ticket.closed',
|
|
2953
|
+
'ticket.label.updated',
|
|
2954
|
+
'message.deleted',
|
|
2955
|
+
'task.created',
|
|
2956
|
+
'task.assignee.updated',
|
|
2957
|
+
],
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
value: 'sender.is_admin',
|
|
2961
|
+
label: 'Sender Is Admin',
|
|
2962
|
+
validTriggers: [
|
|
2963
|
+
'message.created',
|
|
2964
|
+
'message.updated',
|
|
2965
|
+
'reaction.added',
|
|
2966
|
+
'message.flagged',
|
|
2967
|
+
'ticket.created',
|
|
2968
|
+
'ticket.updated',
|
|
2969
|
+
'ticket.closed',
|
|
2970
|
+
'ticket.label.updated',
|
|
2971
|
+
'message.deleted',
|
|
2972
|
+
'task.created',
|
|
2973
|
+
'task.assignee.updated',
|
|
2974
|
+
],
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
value: 'sender.is_internal',
|
|
2978
|
+
label: 'Sender Is Internal',
|
|
2979
|
+
validTriggers: [
|
|
2980
|
+
'message.created',
|
|
2981
|
+
'message.updated',
|
|
2982
|
+
'reaction.added',
|
|
2983
|
+
'message.flagged',
|
|
2984
|
+
'ticket.created',
|
|
2985
|
+
'ticket.updated',
|
|
2986
|
+
'ticket.closed',
|
|
2987
|
+
'ticket.label.updated',
|
|
2988
|
+
'message.deleted',
|
|
2989
|
+
'task.created',
|
|
2990
|
+
'task.assignee.updated',
|
|
2991
|
+
],
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
value: 'reaction.reaction',
|
|
2995
|
+
label: 'Reaction',
|
|
2996
|
+
validTriggers: ['reaction.added'],
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
value: 'reaction.sender_id',
|
|
3000
|
+
label: 'Reaction Sender Phone',
|
|
3001
|
+
validTriggers: ['reaction.added'],
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
label: 'Chat Name',
|
|
3005
|
+
value: 'chat.chat_name',
|
|
3006
|
+
validTriggers: [
|
|
3007
|
+
'message.created',
|
|
3008
|
+
'call.created',
|
|
3009
|
+
'message.updated',
|
|
3010
|
+
'reaction.added',
|
|
3011
|
+
'message.flagged',
|
|
3012
|
+
'chat.created',
|
|
3013
|
+
'chat.label.updated',
|
|
3014
|
+
'ticket.created',
|
|
3015
|
+
'ticket.updated',
|
|
3016
|
+
'ticket.closed',
|
|
3017
|
+
'ticket.label.updated',
|
|
3018
|
+
'message.deleted',
|
|
3019
|
+
'task.created',
|
|
3020
|
+
'task.assignee.updated',
|
|
3021
|
+
'ticket.message.attached',
|
|
3022
|
+
],
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
value: 'chat.assigned_to',
|
|
3026
|
+
label: 'Chat Assigned To',
|
|
3027
|
+
validTriggers: [
|
|
3028
|
+
'message.created',
|
|
3029
|
+
'call.created',
|
|
3030
|
+
'message.updated',
|
|
3031
|
+
'reaction.added',
|
|
3032
|
+
'message.flagged',
|
|
3033
|
+
'chat.created',
|
|
3034
|
+
'chat.label.updated',
|
|
3035
|
+
'ticket.created',
|
|
3036
|
+
'ticket.updated',
|
|
3037
|
+
'ticket.closed',
|
|
3038
|
+
'ticket.label.updated',
|
|
3039
|
+
'message.deleted',
|
|
3040
|
+
'task.created',
|
|
3041
|
+
'task.assignee.updated',
|
|
3042
|
+
'ticket.message.attached',
|
|
3043
|
+
],
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
value: 'chat.assignee_name',
|
|
3047
|
+
label: 'Chat Assignee Name',
|
|
3048
|
+
validTriggers: [
|
|
3049
|
+
'message.created',
|
|
3050
|
+
'call.created',
|
|
3051
|
+
'message.updated',
|
|
3052
|
+
'reaction.added',
|
|
3053
|
+
'message.flagged',
|
|
3054
|
+
'chat.created',
|
|
3055
|
+
'chat.label.updated',
|
|
3056
|
+
'ticket.created',
|
|
3057
|
+
'ticket.updated',
|
|
3058
|
+
'ticket.closed',
|
|
3059
|
+
'message.deleted',
|
|
3060
|
+
'task.created',
|
|
3061
|
+
'task.assignee.updated',
|
|
3062
|
+
'ticket.message.attached',
|
|
3063
|
+
],
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
value: 'chat.chat_id',
|
|
3067
|
+
label: 'Chat ID',
|
|
3068
|
+
validTriggers: [
|
|
3069
|
+
'message.created',
|
|
3070
|
+
'call.created',
|
|
3071
|
+
'message.updated',
|
|
3072
|
+
'reaction.added',
|
|
3073
|
+
'message.flagged',
|
|
3074
|
+
'chat.created',
|
|
3075
|
+
'chat.label.updated',
|
|
3076
|
+
'ticket.created',
|
|
3077
|
+
'ticket.updated',
|
|
3078
|
+
'ticket.closed',
|
|
3079
|
+
'ticket.label.updated',
|
|
3080
|
+
'message.deleted',
|
|
3081
|
+
'task.created',
|
|
3082
|
+
'task.assignee.updated',
|
|
3083
|
+
'ticket.message.attached',
|
|
3084
|
+
],
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
value: 'chat.chat_type',
|
|
3088
|
+
label: 'Chat Type',
|
|
3089
|
+
validTriggers: [
|
|
3090
|
+
'message.created',
|
|
3091
|
+
'call.created',
|
|
3092
|
+
'message.updated',
|
|
3093
|
+
'reaction.added',
|
|
3094
|
+
'message.flagged',
|
|
3095
|
+
'chat.created',
|
|
3096
|
+
'chat.label.updated',
|
|
3097
|
+
'ticket.created',
|
|
3098
|
+
'ticket.updated',
|
|
3099
|
+
'ticket.closed',
|
|
3100
|
+
'message.deleted',
|
|
3101
|
+
'task.created',
|
|
3102
|
+
'task.assignee.updated',
|
|
3103
|
+
'ticket.message.attached',
|
|
3104
|
+
],
|
|
3105
|
+
},
|
|
3106
|
+
{
|
|
3107
|
+
value: 'chat.org_id',
|
|
3108
|
+
label: 'Chat Org ID',
|
|
3109
|
+
validTriggers: [
|
|
3110
|
+
'message.created',
|
|
3111
|
+
'call.created',
|
|
3112
|
+
'message.updated',
|
|
3113
|
+
'reaction.added',
|
|
3114
|
+
'message.flagged',
|
|
3115
|
+
'chat.created',
|
|
3116
|
+
'chat.label.updated',
|
|
3117
|
+
'ticket.created',
|
|
3118
|
+
'ticket.updated',
|
|
3119
|
+
'ticket.closed',
|
|
3120
|
+
'ticket.label.updated',
|
|
3121
|
+
'message.deleted',
|
|
3122
|
+
'task.created',
|
|
3123
|
+
'task.assignee.updated',
|
|
3124
|
+
'ticket.message.attached',
|
|
3125
|
+
],
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
value: 'chat.org_phone',
|
|
3129
|
+
label: 'Chat Org Phone',
|
|
3130
|
+
validTriggers: [
|
|
3131
|
+
'message.created',
|
|
3132
|
+
'call.created',
|
|
3133
|
+
'message.updated',
|
|
3134
|
+
'reaction.added',
|
|
3135
|
+
'message.flagged',
|
|
3136
|
+
'chat.created',
|
|
3137
|
+
'chat.label.updated',
|
|
3138
|
+
'ticket.created',
|
|
3139
|
+
'ticket.updated',
|
|
3140
|
+
'ticket.closed',
|
|
3141
|
+
'ticket.label.updated',
|
|
3142
|
+
'message.deleted',
|
|
3143
|
+
'task.created',
|
|
3144
|
+
'task.assignee.updated',
|
|
3145
|
+
'ticket.message.attached',
|
|
3146
|
+
],
|
|
3147
|
+
},
|
|
3148
|
+
{
|
|
3149
|
+
value: 'task.title',
|
|
3150
|
+
label: 'Task Title',
|
|
3151
|
+
validTriggers: ['task.created', 'task.assignee.updated'],
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
value: 'task.assignee',
|
|
3155
|
+
label: 'Task Assignee',
|
|
3156
|
+
validTriggers: ['task.created', 'task.assignee.updated'],
|
|
3157
|
+
},
|
|
3158
|
+
{
|
|
3159
|
+
value: 'task.due_date',
|
|
3160
|
+
label: 'Task Due Date',
|
|
3161
|
+
validTriggers: ['task.created', 'task.assignee.updated'],
|
|
3162
|
+
},
|
|
3163
|
+
{
|
|
3164
|
+
value: 'task.task_id',
|
|
3165
|
+
label: 'Task ID',
|
|
3166
|
+
validTriggers: ['task.created', 'task.assignee.updated'],
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
value: 'task.notes',
|
|
3170
|
+
label: 'Task Notes',
|
|
3171
|
+
validTriggers: ['task.created', 'task.assignee.updated'],
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
value: 'call_notification.author',
|
|
3175
|
+
label: 'Caller Phone',
|
|
3176
|
+
validTriggers: ['call.created'],
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
value: 'call_notification.call_result',
|
|
3180
|
+
label: 'Call Status',
|
|
3181
|
+
validTriggers: ['call.created'],
|
|
3182
|
+
},
|
|
3183
|
+
{
|
|
3184
|
+
value: 'call_notification.timestamp',
|
|
3185
|
+
label: 'Call Timestamp',
|
|
3186
|
+
validTriggers: ['call.created'],
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
value: 'member_notification.timestamp',
|
|
3190
|
+
label: 'Member Join Timestamp',
|
|
3191
|
+
validTriggers: ['member.joined'],
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
value: 'member_notification.recipientids',
|
|
3195
|
+
label: 'Member Contact IDs',
|
|
3196
|
+
validTriggers: ['member.joined'],
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
value: 'member_notification.type',
|
|
3200
|
+
label: 'Member Notification Type',
|
|
3201
|
+
validTriggers: ['member.joined'],
|
|
3202
|
+
},
|
|
3203
|
+
];
|
|
2985
3204
|
|
|
2986
3205
|
export const variablesExclusionList: Record<
|
|
2987
3206
|
TriggerRuleType,
|
|
@@ -2993,9 +3212,9 @@ export const variablesExclusionList: Record<
|
|
|
2993
3212
|
| keyof AppendTypes<{ reaction: ReactionVariablesType }, '.'>
|
|
2994
3213
|
| keyof AppendTypes<{ task: TaskVariablesType }, '.'>
|
|
2995
3214
|
| keyof AppendTypes<
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
3215
|
+
{ call_notification: CallNotificationVariablesType },
|
|
3216
|
+
'.'
|
|
3217
|
+
>
|
|
2999
3218
|
>
|
|
3000
3219
|
> = {
|
|
3001
3220
|
'ticket.created': ['ticket.is_deleted'],
|
|
@@ -3023,4 +3242,5 @@ export const variablesExclusionList: Record<
|
|
|
3023
3242
|
'task.assignee.updated': [],
|
|
3024
3243
|
'call.created': [],
|
|
3025
3244
|
'member.joined': [],
|
|
3245
|
+
'ticket.message.attached': [],
|
|
3026
3246
|
};
|