@periskope/types 0.6.148 → 0.6.150
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 +15 -7
- package/dist/rules.types.js +149 -54
- package/dist/supabase.types.d.ts +13 -18
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/rules.types.ts +179 -61
- package/supabase.types.ts +2649 -2654
- package/types.ts +2 -0
package/dist/rules.types.js
CHANGED
|
@@ -58,6 +58,10 @@ exports.FilterNameMap = {
|
|
|
58
58
|
name: 'is not',
|
|
59
59
|
input: true,
|
|
60
60
|
},
|
|
61
|
+
ON: {
|
|
62
|
+
name: 'on',
|
|
63
|
+
input: true,
|
|
64
|
+
},
|
|
61
65
|
};
|
|
62
66
|
exports.MessageVariableNameMap = {
|
|
63
67
|
'message.body': {
|
|
@@ -65,62 +69,90 @@ exports.MessageVariableNameMap = {
|
|
|
65
69
|
type: 'string',
|
|
66
70
|
filters: ['CONTAINS', 'NCONTAINS', 'EQ', 'NEQ', 'KNOWN', 'NKNOWN'],
|
|
67
71
|
placeholder: 'e.g. Test message',
|
|
72
|
+
variable_type: 'string',
|
|
68
73
|
},
|
|
69
74
|
'message.sender_phone': {
|
|
70
75
|
text: 'Message Sender Phone',
|
|
71
76
|
type: 'string',
|
|
72
77
|
filters: ['EQ', 'NEQ'],
|
|
73
|
-
placeholder: 'e.g. 919876543210
|
|
78
|
+
placeholder: 'e.g. 919876543210',
|
|
79
|
+
variable_type: 'string',
|
|
74
80
|
},
|
|
75
81
|
'message.timestamp': {
|
|
76
|
-
text: 'Message
|
|
82
|
+
text: 'Message receive timestamp',
|
|
77
83
|
type: 'day-time',
|
|
78
|
-
filters:
|
|
84
|
+
filters: {
|
|
85
|
+
LT: {
|
|
86
|
+
info: 'When message is received before mentioned time (UTC)',
|
|
87
|
+
},
|
|
88
|
+
LTE: {
|
|
89
|
+
info: 'When message is received before mentioned time (UTC)',
|
|
90
|
+
},
|
|
91
|
+
GT: {
|
|
92
|
+
info: 'When message is received after mentioned time (UTC)',
|
|
93
|
+
},
|
|
94
|
+
GTE: {
|
|
95
|
+
info: 'When message is received on or after mentioned time (UTC)',
|
|
96
|
+
},
|
|
97
|
+
ON: {
|
|
98
|
+
info: 'When message is received on mentioned days',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
variable_type: 'day-time',
|
|
102
|
+
info: 'The timestamp when the message was received',
|
|
79
103
|
},
|
|
80
104
|
'message.flag_status': {
|
|
81
105
|
text: 'Message Flag Status',
|
|
82
106
|
filters: ['IS'],
|
|
83
107
|
type: 'boolean',
|
|
108
|
+
variable_type: 'boolean',
|
|
84
109
|
},
|
|
85
110
|
'message.has_quoted_msg': {
|
|
86
111
|
text: 'Quoted Message',
|
|
87
112
|
filters: ['IS'],
|
|
88
113
|
type: 'boolean',
|
|
114
|
+
variable_type: 'boolean',
|
|
89
115
|
},
|
|
90
116
|
'message.media': {
|
|
91
117
|
text: 'Message Media',
|
|
92
118
|
type: 'boolean',
|
|
93
119
|
filters: ['KNOWN', 'NKNOWN'],
|
|
120
|
+
variable_type: 'boolean',
|
|
94
121
|
},
|
|
95
122
|
'message.performed_by': {
|
|
96
123
|
text: 'Message Performed By',
|
|
97
124
|
type: 'dropdown',
|
|
98
125
|
value: 'org.members',
|
|
99
126
|
filters: ['EQ', 'NEQ'],
|
|
127
|
+
variable_type: 'string',
|
|
100
128
|
},
|
|
101
129
|
'message.chat_id': {
|
|
102
130
|
text: 'Chat ID',
|
|
103
131
|
type: 'string',
|
|
104
132
|
filters: ['EQ', 'NEQ'],
|
|
105
133
|
hidden: true,
|
|
134
|
+
variable_type: 'string',
|
|
106
135
|
},
|
|
107
136
|
'message.message_id': {
|
|
108
137
|
text: 'Message ID',
|
|
109
138
|
type: 'string',
|
|
110
139
|
filters: ['EQ', 'NEQ'],
|
|
111
140
|
hidden: true,
|
|
141
|
+
variable_type: 'string',
|
|
112
142
|
},
|
|
113
143
|
'message.org_phone': {
|
|
114
144
|
text: 'Org Phone',
|
|
115
145
|
type: 'string',
|
|
116
146
|
filters: ['EQ', 'NEQ'],
|
|
117
147
|
hidden: true,
|
|
148
|
+
variable_type: 'string',
|
|
118
149
|
},
|
|
119
150
|
'message.org_id': {
|
|
120
151
|
text: 'Org ID',
|
|
121
152
|
type: 'string',
|
|
122
153
|
filters: ['EQ', 'NEQ'],
|
|
123
154
|
hidden: true,
|
|
155
|
+
variable_type: 'string',
|
|
124
156
|
},
|
|
125
157
|
'message.message_type': {
|
|
126
158
|
text: 'Message Type',
|
|
@@ -133,23 +165,26 @@ exports.MessageVariableNameMap = {
|
|
|
133
165
|
{ id: 'document', value: 'document', label: 'Document' },
|
|
134
166
|
],
|
|
135
167
|
filters: ['EQ', 'NEQ'],
|
|
168
|
+
variable_type: 'string',
|
|
136
169
|
},
|
|
137
170
|
'message.author': {
|
|
138
171
|
text: 'Message Author',
|
|
139
172
|
type: 'string',
|
|
140
173
|
filters: ['EQ', 'NEQ'],
|
|
141
174
|
hidden: true,
|
|
175
|
+
variable_type: 'string',
|
|
142
176
|
},
|
|
143
177
|
'message.ack': {
|
|
144
178
|
text: 'Message acknowledment status',
|
|
145
179
|
type: 'dropdown',
|
|
146
180
|
value: [
|
|
147
|
-
{ id: '0', value:
|
|
148
|
-
{ id: '1', value:
|
|
149
|
-
{ id: '2', value:
|
|
150
|
-
{ id: '3', value:
|
|
181
|
+
{ id: '0', value: 0, label: '0' },
|
|
182
|
+
{ id: '1', value: 1, label: '1' },
|
|
183
|
+
{ id: '2', value: 2, label: '2' },
|
|
184
|
+
{ id: '3', value: 3, label: '3' },
|
|
151
185
|
],
|
|
152
186
|
filters: ['EQ'],
|
|
187
|
+
variable_type: 'number',
|
|
153
188
|
},
|
|
154
189
|
};
|
|
155
190
|
exports.SenderVariableNameMap = {
|
|
@@ -157,40 +192,47 @@ exports.SenderVariableNameMap = {
|
|
|
157
192
|
text: 'Sender is business',
|
|
158
193
|
type: 'boolean',
|
|
159
194
|
filters: ['IS'],
|
|
195
|
+
variable_type: 'boolean',
|
|
160
196
|
},
|
|
161
197
|
'sender.is_enterprise': {
|
|
162
198
|
text: 'Sender is enterprise',
|
|
163
199
|
type: 'boolean',
|
|
164
200
|
filters: ['IS'],
|
|
201
|
+
variable_type: 'boolean',
|
|
165
202
|
},
|
|
166
203
|
'sender.is_internal': {
|
|
167
204
|
text: 'Sender is internal',
|
|
168
205
|
type: 'boolean',
|
|
169
206
|
filters: ['IS'],
|
|
207
|
+
variable_type: 'boolean',
|
|
170
208
|
},
|
|
171
209
|
'sender.contact_name': {
|
|
172
210
|
text: 'Sender Name',
|
|
173
211
|
type: 'string',
|
|
174
212
|
filters: ['EQ', 'NEQ', 'KNOWN', 'NKNOWN'],
|
|
175
213
|
placeholder: 'e.g. John Doe',
|
|
214
|
+
variable_type: 'string',
|
|
176
215
|
},
|
|
177
216
|
'sender.contact_id': {
|
|
178
217
|
text: 'Sender Contact Phone',
|
|
179
218
|
type: 'string',
|
|
180
219
|
filters: ['EQ', 'NEQ'],
|
|
181
|
-
placeholder: 'e.g. 919876543210
|
|
220
|
+
placeholder: 'e.g. 919876543210',
|
|
221
|
+
variable_type: 'string',
|
|
182
222
|
},
|
|
183
223
|
'sender.labels': {
|
|
184
224
|
text: 'Sender Labels',
|
|
185
225
|
type: 'dropdown',
|
|
186
226
|
value: 'org.labels',
|
|
187
227
|
filters: ['EQ', 'NEQ'],
|
|
228
|
+
variable_type: 'string',
|
|
188
229
|
},
|
|
189
230
|
'sender.org_id': {
|
|
190
231
|
text: 'Org ID',
|
|
191
232
|
type: 'string',
|
|
192
233
|
filters: ['EQ', 'NEQ'],
|
|
193
234
|
hidden: true,
|
|
235
|
+
variable_type: 'string',
|
|
194
236
|
},
|
|
195
237
|
'sender.is_super_admin': {
|
|
196
238
|
text: 'Sender is super admin',
|
|
@@ -199,15 +241,16 @@ exports.SenderVariableNameMap = {
|
|
|
199
241
|
value: [
|
|
200
242
|
{
|
|
201
243
|
id: 'true',
|
|
202
|
-
value:
|
|
244
|
+
value: true,
|
|
203
245
|
label: 'True',
|
|
204
246
|
},
|
|
205
247
|
{
|
|
206
248
|
id: 'false',
|
|
207
|
-
value:
|
|
249
|
+
value: false,
|
|
208
250
|
label: 'False',
|
|
209
251
|
},
|
|
210
252
|
],
|
|
253
|
+
variable_type: 'boolean',
|
|
211
254
|
},
|
|
212
255
|
'sender.is_admin': {
|
|
213
256
|
text: 'Sender is admin',
|
|
@@ -216,15 +259,16 @@ exports.SenderVariableNameMap = {
|
|
|
216
259
|
value: [
|
|
217
260
|
{
|
|
218
261
|
id: 'true',
|
|
219
|
-
value:
|
|
262
|
+
value: true,
|
|
220
263
|
label: 'True',
|
|
221
264
|
},
|
|
222
265
|
{
|
|
223
266
|
id: 'false',
|
|
224
|
-
value:
|
|
267
|
+
value: false,
|
|
225
268
|
label: 'False',
|
|
226
269
|
},
|
|
227
270
|
],
|
|
271
|
+
variable_type: 'boolean',
|
|
228
272
|
},
|
|
229
273
|
};
|
|
230
274
|
exports.ChatVariableNameMap = {
|
|
@@ -233,18 +277,21 @@ exports.ChatVariableNameMap = {
|
|
|
233
277
|
type: 'dropdown',
|
|
234
278
|
value: 'org.members',
|
|
235
279
|
filters: ['EQ', 'NEQ', 'KNOWN', 'NKNOWN'],
|
|
280
|
+
variable_type: 'string',
|
|
236
281
|
},
|
|
237
282
|
'chat.chat_name': {
|
|
238
283
|
text: 'Chat Name',
|
|
239
284
|
type: 'string',
|
|
240
285
|
filters: ['EQ', 'NEQ', 'CONTAINS', 'NCONTAINS'],
|
|
241
286
|
placeholder: 'e.g. Support Chat',
|
|
287
|
+
variable_type: 'string',
|
|
242
288
|
},
|
|
243
289
|
'chat.org_phone': {
|
|
244
290
|
text: 'Chat Org Phone',
|
|
245
291
|
type: 'dropdown',
|
|
246
292
|
value: 'org.org_phones',
|
|
247
293
|
filters: ['EQ', 'NEQ'],
|
|
294
|
+
variable_type: 'string',
|
|
248
295
|
},
|
|
249
296
|
'chat.chat_type': {
|
|
250
297
|
text: 'Chat Type',
|
|
@@ -254,36 +301,42 @@ exports.ChatVariableNameMap = {
|
|
|
254
301
|
{ id: 'group', value: 'group', label: 'Group' },
|
|
255
302
|
],
|
|
256
303
|
filters: ['EQ', 'NEQ'],
|
|
304
|
+
variable_type: 'string',
|
|
257
305
|
},
|
|
258
306
|
'chat.members': {
|
|
259
307
|
text: 'Chat Members',
|
|
260
308
|
type: 'string',
|
|
261
309
|
filters: ['CONTAINS', 'NCONTAINS'],
|
|
262
310
|
placeholder: 'e.g. 919876543210',
|
|
311
|
+
variable_type: 'string',
|
|
263
312
|
},
|
|
264
313
|
'chat.labels': {
|
|
265
314
|
text: 'Chat Labels',
|
|
266
315
|
type: 'dropdown',
|
|
267
316
|
value: 'org.labels',
|
|
268
317
|
filters: ['CONTAINS', 'NCONTAINS'],
|
|
318
|
+
variable_type: 'string',
|
|
269
319
|
},
|
|
270
320
|
'chat.chat_id': {
|
|
271
321
|
text: 'Chat ID',
|
|
272
322
|
type: 'string',
|
|
273
323
|
filters: ['EQ', 'NEQ'],
|
|
274
324
|
placeholder: 'e.g. 12027747916749@c.us',
|
|
325
|
+
variable_type: 'string',
|
|
275
326
|
},
|
|
276
327
|
'chat.chat_org_phones': {
|
|
277
328
|
text: 'Chat Org Phones',
|
|
278
329
|
type: 'dropdown',
|
|
279
330
|
filters: ['CONTAINS', 'NCONTAINS'],
|
|
280
331
|
hidden: true,
|
|
332
|
+
variable_type: 'string',
|
|
281
333
|
},
|
|
282
334
|
'chat.org_id': {
|
|
283
335
|
text: 'Org ID',
|
|
284
336
|
type: 'string',
|
|
285
337
|
filters: [],
|
|
286
338
|
hidden: true,
|
|
339
|
+
variable_type: 'string',
|
|
287
340
|
},
|
|
288
341
|
'chat.messages_admins_only': {
|
|
289
342
|
text: 'Chat Messages Admins Only',
|
|
@@ -292,15 +345,16 @@ exports.ChatVariableNameMap = {
|
|
|
292
345
|
value: [
|
|
293
346
|
{
|
|
294
347
|
id: 'true',
|
|
295
|
-
value:
|
|
348
|
+
value: true,
|
|
296
349
|
label: 'True',
|
|
297
350
|
},
|
|
298
351
|
{
|
|
299
352
|
id: 'false',
|
|
300
|
-
value:
|
|
353
|
+
value: false,
|
|
301
354
|
label: 'False',
|
|
302
355
|
},
|
|
303
356
|
],
|
|
357
|
+
variable_type: 'boolean',
|
|
304
358
|
},
|
|
305
359
|
'chat.is_muted': {
|
|
306
360
|
text: 'Chat is muted',
|
|
@@ -309,15 +363,16 @@ exports.ChatVariableNameMap = {
|
|
|
309
363
|
value: [
|
|
310
364
|
{
|
|
311
365
|
id: 'true',
|
|
312
|
-
value:
|
|
366
|
+
value: true,
|
|
313
367
|
label: 'True',
|
|
314
368
|
},
|
|
315
369
|
{
|
|
316
370
|
id: 'false',
|
|
317
|
-
value:
|
|
371
|
+
value: false,
|
|
318
372
|
label: 'False',
|
|
319
373
|
},
|
|
320
374
|
],
|
|
375
|
+
variable_type: 'boolean',
|
|
321
376
|
},
|
|
322
377
|
'chat.is_exited': {
|
|
323
378
|
text: 'Chat is exited',
|
|
@@ -326,33 +381,17 @@ exports.ChatVariableNameMap = {
|
|
|
326
381
|
value: [
|
|
327
382
|
{
|
|
328
383
|
id: 'true',
|
|
329
|
-
value:
|
|
384
|
+
value: true,
|
|
330
385
|
label: 'True',
|
|
331
386
|
},
|
|
332
387
|
{
|
|
333
388
|
id: 'false',
|
|
334
|
-
value:
|
|
389
|
+
value: false,
|
|
335
390
|
label: 'False',
|
|
336
391
|
},
|
|
337
392
|
],
|
|
393
|
+
variable_type: 'boolean',
|
|
338
394
|
},
|
|
339
|
-
// 'chat.is_archived': {
|
|
340
|
-
// text: 'Chat is archived',
|
|
341
|
-
// type: 'boolean',
|
|
342
|
-
// filters: ['EQ', 'NEQ'],
|
|
343
|
-
// value: [
|
|
344
|
-
// {
|
|
345
|
-
// id: 'true',
|
|
346
|
-
// value: 'true',
|
|
347
|
-
// label: 'True',
|
|
348
|
-
// },
|
|
349
|
-
// {
|
|
350
|
-
// id: 'false',
|
|
351
|
-
// value: 'false',
|
|
352
|
-
// label: 'False',
|
|
353
|
-
// },
|
|
354
|
-
// ],
|
|
355
|
-
// },
|
|
356
395
|
'chat.info_admins_only': {
|
|
357
396
|
text: 'Chat Info Admins Only',
|
|
358
397
|
type: 'boolean',
|
|
@@ -360,15 +399,16 @@ exports.ChatVariableNameMap = {
|
|
|
360
399
|
value: [
|
|
361
400
|
{
|
|
362
401
|
id: 'true',
|
|
363
|
-
value:
|
|
402
|
+
value: true,
|
|
364
403
|
label: 'True',
|
|
365
404
|
},
|
|
366
405
|
{
|
|
367
406
|
id: 'false',
|
|
368
|
-
value:
|
|
407
|
+
value: false,
|
|
369
408
|
label: 'False',
|
|
370
409
|
},
|
|
371
410
|
],
|
|
411
|
+
variable_type: 'boolean',
|
|
372
412
|
},
|
|
373
413
|
'chat.has_flagged_messages': {
|
|
374
414
|
text: 'Chat has flagged messages',
|
|
@@ -377,21 +417,23 @@ exports.ChatVariableNameMap = {
|
|
|
377
417
|
value: [
|
|
378
418
|
{
|
|
379
419
|
id: 'true',
|
|
380
|
-
value:
|
|
420
|
+
value: true,
|
|
381
421
|
label: 'True',
|
|
382
422
|
},
|
|
383
423
|
{
|
|
384
424
|
id: 'false',
|
|
385
|
-
value:
|
|
425
|
+
value: false,
|
|
386
426
|
label: 'False',
|
|
387
427
|
},
|
|
388
428
|
],
|
|
429
|
+
variable_type: 'boolean',
|
|
389
430
|
},
|
|
390
431
|
'chat.group_description': {
|
|
391
432
|
text: 'Group Description',
|
|
392
433
|
type: 'string',
|
|
393
434
|
filters: ['CONTAINS', 'NCONTAINS', 'EQ', 'NEQ'],
|
|
394
435
|
placeholder: 'e.g. Group description',
|
|
436
|
+
variable_type: 'string',
|
|
395
437
|
},
|
|
396
438
|
'chat.custom_properties': {
|
|
397
439
|
text: 'Chat Custom Properties',
|
|
@@ -399,11 +441,13 @@ exports.ChatVariableNameMap = {
|
|
|
399
441
|
value: 'org.custom_properties',
|
|
400
442
|
filters: ['EQ', 'NEQ'],
|
|
401
443
|
hidden: true,
|
|
444
|
+
variable_type: 'string',
|
|
402
445
|
},
|
|
403
446
|
'chat.created_at': {
|
|
404
447
|
text: 'Chat Created At',
|
|
405
448
|
type: 'day-time',
|
|
406
|
-
filters: ['LT', 'LTE', 'GT', 'GTE', '
|
|
449
|
+
filters: ['LT', 'LTE', 'GT', 'GTE', 'ON'],
|
|
450
|
+
variable_type: 'day-time',
|
|
407
451
|
},
|
|
408
452
|
};
|
|
409
453
|
exports.TicketVariableNameMap = {
|
|
@@ -412,6 +456,7 @@ exports.TicketVariableNameMap = {
|
|
|
412
456
|
type: 'string',
|
|
413
457
|
filters: ['CONTAINS', 'NCONTAINS', 'EQ', 'NEQ'],
|
|
414
458
|
placeholder: 'e.g. Test ticket',
|
|
459
|
+
variable_type: 'string',
|
|
415
460
|
},
|
|
416
461
|
'ticket.status': {
|
|
417
462
|
text: 'Ticket Status',
|
|
@@ -422,58 +467,80 @@ exports.TicketVariableNameMap = {
|
|
|
422
467
|
{ id: 'inprogress', value: 'inprogress', label: 'In progress' },
|
|
423
468
|
],
|
|
424
469
|
filters: ['EQ', 'NEQ'],
|
|
470
|
+
variable_type: 'string',
|
|
425
471
|
},
|
|
426
472
|
'ticket.priority': {
|
|
427
473
|
text: 'Ticket Priority',
|
|
428
474
|
type: 'dropdown',
|
|
429
475
|
value: [
|
|
430
|
-
{ id: '0', value:
|
|
431
|
-
{ id: '1', value:
|
|
432
|
-
{ id: '2', value:
|
|
433
|
-
{ id: '3', value:
|
|
434
|
-
{ id: '4', value:
|
|
476
|
+
{ id: '0', value: 0, label: 'No Prioriy' },
|
|
477
|
+
{ id: '1', value: 1, label: 'Low' },
|
|
478
|
+
{ id: '2', value: 2, label: 'Medium' },
|
|
479
|
+
{ id: '3', value: 3, label: 'High' },
|
|
480
|
+
{ id: '4', value: 4, label: 'Urgent' },
|
|
435
481
|
],
|
|
436
482
|
filters: ['EQ', 'NEQ'],
|
|
483
|
+
variable_type: 'number',
|
|
437
484
|
},
|
|
438
485
|
'ticket.assignee': {
|
|
439
486
|
text: 'Ticket Assignee',
|
|
440
487
|
type: 'dropdown',
|
|
441
488
|
value: 'org.members',
|
|
442
489
|
filters: ['EQ', 'NEQ', 'KNOWN', 'NKNOWN'],
|
|
490
|
+
variable_type: 'string',
|
|
443
491
|
},
|
|
444
492
|
'ticket.labels': {
|
|
445
493
|
text: 'Ticket Labels',
|
|
446
494
|
type: 'dropdown',
|
|
447
495
|
value: 'org.labels',
|
|
448
496
|
filters: ['EQ', 'NEQ'],
|
|
497
|
+
variable_type: 'string',
|
|
449
498
|
},
|
|
450
499
|
'ticket.is_deleted': {
|
|
451
500
|
text: 'Ticket is deleted',
|
|
452
501
|
type: 'boolean',
|
|
502
|
+
value: [
|
|
503
|
+
{
|
|
504
|
+
id: 'true',
|
|
505
|
+
value: true,
|
|
506
|
+
label: 'True',
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
id: 'false',
|
|
510
|
+
value: false,
|
|
511
|
+
label: 'False',
|
|
512
|
+
},
|
|
513
|
+
],
|
|
453
514
|
filters: ['IS'],
|
|
515
|
+
variable_type: 'boolean',
|
|
454
516
|
},
|
|
455
517
|
'ticket.raised_by': {
|
|
456
518
|
text: 'Ticket Raised By',
|
|
457
519
|
type: 'dropdown',
|
|
458
520
|
value: 'org.members',
|
|
459
521
|
filters: ['EQ', 'NEQ'],
|
|
522
|
+
variable_type: 'string',
|
|
460
523
|
},
|
|
461
524
|
'ticket.due_date': {
|
|
462
525
|
text: 'Ticket Due Date',
|
|
463
|
-
type: '
|
|
526
|
+
type: 'date',
|
|
464
527
|
filters: ['KNOWN', 'NKNOWN'],
|
|
528
|
+
variable_type: 'date',
|
|
529
|
+
hidden: true,
|
|
465
530
|
},
|
|
466
531
|
'ticket.ticket_id': {
|
|
467
532
|
text: 'Ticket ID',
|
|
468
533
|
type: 'string',
|
|
469
534
|
filters: ['EQ', 'NEQ'],
|
|
470
535
|
hidden: true,
|
|
536
|
+
variable_type: 'string',
|
|
471
537
|
},
|
|
472
538
|
'ticket.org_id': {
|
|
473
539
|
text: 'Org ID',
|
|
474
540
|
type: 'string',
|
|
475
541
|
filters: ['EQ', 'NEQ'],
|
|
476
542
|
hidden: true,
|
|
543
|
+
variable_type: 'string',
|
|
477
544
|
},
|
|
478
545
|
'ticket.custom_properties': {
|
|
479
546
|
text: 'Ticket Custom Properties',
|
|
@@ -481,17 +548,20 @@ exports.TicketVariableNameMap = {
|
|
|
481
548
|
value: 'org.custom_properties',
|
|
482
549
|
filters: ['EQ', 'NEQ'],
|
|
483
550
|
hidden: true,
|
|
551
|
+
variable_type: 'string',
|
|
484
552
|
},
|
|
485
553
|
'ticket.created_at': {
|
|
486
554
|
text: 'Ticket Created At',
|
|
487
555
|
type: 'day-time',
|
|
488
|
-
filters: ['LT', 'LTE', 'GT', 'GTE'],
|
|
556
|
+
filters: ['LT', 'LTE', 'GT', 'GTE', 'ON'],
|
|
557
|
+
variable_type: 'day-time',
|
|
489
558
|
},
|
|
490
559
|
'ticket.chat_id': {
|
|
491
560
|
text: 'Chat ID',
|
|
492
561
|
type: 'string',
|
|
493
562
|
filters: ['EQ', 'NEQ'],
|
|
494
563
|
hidden: true,
|
|
564
|
+
variable_type: 'string',
|
|
495
565
|
},
|
|
496
566
|
};
|
|
497
567
|
exports.ReactionVariableNameMap = {
|
|
@@ -500,30 +570,35 @@ exports.ReactionVariableNameMap = {
|
|
|
500
570
|
type: 'string',
|
|
501
571
|
filters: ['EQ', 'NEQ'],
|
|
502
572
|
placeholder: 'e.g. 👍',
|
|
573
|
+
variable_type: 'string',
|
|
503
574
|
},
|
|
504
575
|
'reaction.sender_id': {
|
|
505
576
|
text: 'Reaction Sender Phone',
|
|
506
577
|
type: 'string',
|
|
507
578
|
filters: ['EQ', 'NEQ'],
|
|
508
|
-
placeholder: 'e.g. 919876543210
|
|
579
|
+
placeholder: 'e.g. 919876543210',
|
|
580
|
+
variable_type: 'string',
|
|
509
581
|
},
|
|
510
582
|
'reaction.message_id': {
|
|
511
583
|
text: 'Reaction Message ID',
|
|
512
584
|
type: 'string',
|
|
513
585
|
filters: ['EQ', 'NEQ'],
|
|
514
586
|
hidden: true,
|
|
587
|
+
variable_type: 'string',
|
|
515
588
|
},
|
|
516
589
|
'reaction.chat_id': {
|
|
517
590
|
text: 'Chat ID',
|
|
518
591
|
type: 'string',
|
|
519
592
|
filters: ['EQ', 'NEQ'],
|
|
520
593
|
hidden: true,
|
|
594
|
+
variable_type: 'string',
|
|
521
595
|
},
|
|
522
596
|
'reaction.reaction_id': {
|
|
523
597
|
text: 'Reaction ID',
|
|
524
598
|
type: 'string',
|
|
525
599
|
filters: ['EQ', 'NEQ'],
|
|
526
600
|
hidden: true,
|
|
601
|
+
variable_type: 'string',
|
|
527
602
|
},
|
|
528
603
|
};
|
|
529
604
|
var FilterConditionMap;
|
|
@@ -622,6 +697,16 @@ exports.ActionNameMap = {
|
|
|
622
697
|
placeholder: 'Upload media',
|
|
623
698
|
value: null,
|
|
624
699
|
},
|
|
700
|
+
maintain_flag_status: {
|
|
701
|
+
id: 'maintain_flag_status',
|
|
702
|
+
type: 'dropdown',
|
|
703
|
+
label: 'Maintain Flag Status',
|
|
704
|
+
placeholder: 'Select...',
|
|
705
|
+
value: [
|
|
706
|
+
{ id: 'true', value: 'true', label: 'True' },
|
|
707
|
+
{ id: 'false', value: 'false', label: 'False' },
|
|
708
|
+
],
|
|
709
|
+
},
|
|
625
710
|
},
|
|
626
711
|
validTriggers: [
|
|
627
712
|
'message.created',
|
|
@@ -652,6 +737,16 @@ exports.ActionNameMap = {
|
|
|
652
737
|
placeholder: 'Upload media',
|
|
653
738
|
value: null,
|
|
654
739
|
},
|
|
740
|
+
maintain_flag_status: {
|
|
741
|
+
id: 'maintain_flag_status',
|
|
742
|
+
type: 'dropdown',
|
|
743
|
+
label: 'Maintain Flag Status',
|
|
744
|
+
placeholder: 'Select...',
|
|
745
|
+
value: [
|
|
746
|
+
{ id: 'true', value: 'true', label: 'True' },
|
|
747
|
+
{ id: 'false', value: 'false', label: 'False' },
|
|
748
|
+
],
|
|
749
|
+
},
|
|
655
750
|
},
|
|
656
751
|
validTriggers: [
|
|
657
752
|
'message.created',
|
|
@@ -698,11 +793,11 @@ exports.ActionNameMap = {
|
|
|
698
793
|
id: 'priority',
|
|
699
794
|
type: 'dropdown',
|
|
700
795
|
value: [
|
|
701
|
-
{ id: '0', value: '0', label: '
|
|
702
|
-
{ id: '1', value: '1', label: '
|
|
703
|
-
{ id: '2', value: '2', label: '
|
|
704
|
-
{ id: '3', value: '3', label: '
|
|
705
|
-
{ id: '4', value: '4', label: '
|
|
796
|
+
{ id: '0', value: '0', label: 'No Prioriy' },
|
|
797
|
+
{ id: '1', value: '1', label: 'Low' },
|
|
798
|
+
{ id: '2', value: '2', label: 'Medium' },
|
|
799
|
+
{ id: '3', value: '3', label: 'High' },
|
|
800
|
+
{ id: '4', value: '4', label: 'Urgent' },
|
|
706
801
|
],
|
|
707
802
|
label: 'Priority',
|
|
708
803
|
placeholder: 'Select priority',
|
|
@@ -816,7 +911,7 @@ exports.ActionNameMap = {
|
|
|
816
911
|
validTriggers: ['ticket.updated', 'ticket.created'],
|
|
817
912
|
},
|
|
818
913
|
update_custom_property: {
|
|
819
|
-
description: 'Update a custom property',
|
|
914
|
+
description: 'Update a chat custom property',
|
|
820
915
|
title: 'Update Chat Custom Property',
|
|
821
916
|
validTriggers: [
|
|
822
917
|
'message.created',
|