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