n8n-nodes-pachca 1.0.21 → 1.0.22
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.
|
@@ -2,70 +2,70 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Pachca = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
//
|
|
5
|
+
// Form templates for Pachca
|
|
6
6
|
const FORM_TEMPLATES = {
|
|
7
7
|
timeoff_request: {
|
|
8
|
-
title: '
|
|
9
|
-
close_text: '
|
|
10
|
-
submit_text: '
|
|
8
|
+
title: 'Time-off request',
|
|
9
|
+
close_text: 'Close',
|
|
10
|
+
submit_text: 'Submit request',
|
|
11
11
|
blocks: [
|
|
12
12
|
{
|
|
13
13
|
type: 'plain_text',
|
|
14
|
-
text: '
|
|
14
|
+
text: 'Fill out the form to submit a time-off request. After submission, a notification will be sent to the general chat.',
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
type: 'header',
|
|
18
|
-
text: '
|
|
18
|
+
text: 'Basic information',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
type: 'date',
|
|
22
22
|
name: 'date_start',
|
|
23
|
-
label: '
|
|
23
|
+
label: 'Start date',
|
|
24
24
|
required: true,
|
|
25
|
-
hint: '
|
|
25
|
+
hint: 'Select start date',
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
type: 'date',
|
|
29
29
|
name: 'date_end',
|
|
30
|
-
label: '
|
|
30
|
+
label: 'End date',
|
|
31
31
|
required: true,
|
|
32
|
-
hint: '
|
|
32
|
+
hint: 'Select end date',
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
type: 'input',
|
|
36
36
|
name: 'reason',
|
|
37
|
-
label: '
|
|
38
|
-
placeholder: '
|
|
37
|
+
label: 'Reason',
|
|
38
|
+
placeholder: 'Describe the reason for time off',
|
|
39
39
|
multiline: true,
|
|
40
|
-
hint: '
|
|
40
|
+
hint: 'Optional field for additional information',
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
type: 'divider',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
type: 'header',
|
|
47
|
-
text: '
|
|
47
|
+
text: 'Availability',
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
type: 'radio',
|
|
51
51
|
name: 'accessibility',
|
|
52
|
-
label: '
|
|
52
|
+
label: 'Availability during time off',
|
|
53
53
|
options: [
|
|
54
54
|
{
|
|
55
|
-
text: '
|
|
55
|
+
text: 'Fully unavailable',
|
|
56
56
|
value: 'unavailable',
|
|
57
|
-
description: '
|
|
57
|
+
description: 'Will not respond to messages and calls',
|
|
58
58
|
checked: true,
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
text: '
|
|
61
|
+
text: 'Phone only',
|
|
62
62
|
value: 'phone_only',
|
|
63
|
-
description: '
|
|
63
|
+
description: 'Will respond to urgent calls only',
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
text: '
|
|
66
|
+
text: 'Phone and laptop',
|
|
67
67
|
value: 'phone_laptop',
|
|
68
|
-
description: '
|
|
68
|
+
description: 'Available for important matters',
|
|
69
69
|
},
|
|
70
70
|
],
|
|
71
71
|
required: true,
|
|
@@ -73,151 +73,151 @@ const FORM_TEMPLATES = {
|
|
|
73
73
|
],
|
|
74
74
|
},
|
|
75
75
|
feedback_form: {
|
|
76
|
-
title: '
|
|
77
|
-
close_text: '
|
|
78
|
-
submit_text: '
|
|
76
|
+
title: 'Feedback',
|
|
77
|
+
close_text: 'Cancel',
|
|
78
|
+
submit_text: 'Submit feedback',
|
|
79
79
|
blocks: [
|
|
80
80
|
{
|
|
81
81
|
type: 'plain_text',
|
|
82
|
-
text: '
|
|
82
|
+
text: 'Share your opinion about the team or project. Your feedback helps us improve.',
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
type: 'header',
|
|
86
|
-
text: '
|
|
86
|
+
text: 'Rating',
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
type: 'select',
|
|
90
90
|
name: 'rating',
|
|
91
|
-
label: '
|
|
91
|
+
label: 'Overall rating',
|
|
92
92
|
options: [
|
|
93
|
-
{ text: '⭐
|
|
94
|
-
{ text: '👍
|
|
95
|
-
{ text: '😐
|
|
96
|
-
{ text: '👎
|
|
97
|
-
{ text: '💩
|
|
93
|
+
{ text: '⭐ Excellent (5)', value: '5' },
|
|
94
|
+
{ text: '👍 Good (4)', value: '4' },
|
|
95
|
+
{ text: '😐 Average (3)', value: '3' },
|
|
96
|
+
{ text: '👎 Poor (2)', value: '2' },
|
|
97
|
+
{ text: '💩 Very poor (1)', value: '1' },
|
|
98
98
|
],
|
|
99
99
|
required: true,
|
|
100
|
-
hint: '
|
|
100
|
+
hint: 'Select a rating from 1 to 5',
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
type: 'divider',
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
type: 'header',
|
|
107
|
-
text: '
|
|
107
|
+
text: 'Comments',
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
type: 'input',
|
|
111
111
|
name: 'comment',
|
|
112
|
-
label: '
|
|
113
|
-
placeholder: '
|
|
112
|
+
label: 'Your feedback',
|
|
113
|
+
placeholder: 'Describe what you liked or what could be improved',
|
|
114
114
|
multiline: true,
|
|
115
115
|
required: true,
|
|
116
|
-
hint: '
|
|
116
|
+
hint: 'The more detail, the better',
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
type: 'checkbox',
|
|
120
120
|
name: 'categories',
|
|
121
|
-
label: '
|
|
121
|
+
label: 'Feedback categories',
|
|
122
122
|
options: [
|
|
123
123
|
{
|
|
124
|
-
text: '
|
|
124
|
+
text: 'Teamwork',
|
|
125
125
|
value: 'team_work',
|
|
126
|
-
description: '
|
|
126
|
+
description: 'Team collaboration',
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
text: '
|
|
129
|
+
text: 'Processes',
|
|
130
130
|
value: 'processes',
|
|
131
|
-
description: '
|
|
131
|
+
description: 'Workflow organization',
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
text: '
|
|
134
|
+
text: 'Tools',
|
|
135
135
|
value: 'tools',
|
|
136
|
-
description: '
|
|
136
|
+
description: 'Tools and technologies used',
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
text: '
|
|
139
|
+
text: 'Communication',
|
|
140
140
|
value: 'communication',
|
|
141
|
-
description: '
|
|
141
|
+
description: 'Communication and information quality',
|
|
142
142
|
},
|
|
143
143
|
],
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
},
|
|
147
147
|
task_request: {
|
|
148
|
-
title: '
|
|
149
|
-
close_text: '
|
|
150
|
-
submit_text: '
|
|
148
|
+
title: 'Task request',
|
|
149
|
+
close_text: 'Cancel',
|
|
150
|
+
submit_text: 'Create task',
|
|
151
151
|
blocks: [
|
|
152
152
|
{
|
|
153
153
|
type: 'plain_text',
|
|
154
|
-
text: '
|
|
154
|
+
text: 'Create a new task for the team. Provide all necessary details for effective work.',
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
type: 'header',
|
|
158
|
-
text: '
|
|
158
|
+
text: 'Task description',
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
type: 'input',
|
|
162
162
|
name: 'title',
|
|
163
|
-
label: '
|
|
164
|
-
placeholder: '
|
|
163
|
+
label: 'Task title',
|
|
164
|
+
placeholder: 'Brief task description',
|
|
165
165
|
required: true,
|
|
166
166
|
max_length: 100,
|
|
167
|
-
hint: '
|
|
167
|
+
hint: 'Max 100 characters',
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
type: 'input',
|
|
171
171
|
name: 'description',
|
|
172
|
-
label: '
|
|
173
|
-
placeholder: '
|
|
172
|
+
label: 'Detailed description',
|
|
173
|
+
placeholder: 'Describe the task in detail',
|
|
174
174
|
multiline: true,
|
|
175
175
|
required: true,
|
|
176
|
-
hint: '
|
|
176
|
+
hint: 'Include all important details and requirements',
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
type: 'divider',
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
type: 'header',
|
|
183
|
-
text: '
|
|
183
|
+
text: 'Priority and deadlines',
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
type: 'select',
|
|
187
187
|
name: 'priority',
|
|
188
|
-
label: '
|
|
188
|
+
label: 'Priority',
|
|
189
189
|
options: [
|
|
190
|
-
{ text: '🔥
|
|
191
|
-
{ text: '⚡
|
|
192
|
-
{ text: '📋
|
|
193
|
-
{ text: '📌
|
|
190
|
+
{ text: '🔥 Critical', value: 'critical' },
|
|
191
|
+
{ text: '⚡ High', value: 'high' },
|
|
192
|
+
{ text: '📋 Normal', value: 'normal', selected: true },
|
|
193
|
+
{ text: '📌 Low', value: 'low' },
|
|
194
194
|
],
|
|
195
195
|
required: true,
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
type: 'date',
|
|
199
199
|
name: 'due_date',
|
|
200
|
-
label: '
|
|
201
|
-
hint: '
|
|
200
|
+
label: 'Due date',
|
|
201
|
+
hint: 'When the task should be completed',
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
type: 'divider',
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
type: 'header',
|
|
208
|
-
text: '
|
|
208
|
+
text: 'Assignees',
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
type: 'input',
|
|
212
212
|
name: 'assignee_emails',
|
|
213
|
-
label: '
|
|
213
|
+
label: 'Assignee emails',
|
|
214
214
|
placeholder: 'user1@company.com, user2@company.com',
|
|
215
|
-
hint: '
|
|
215
|
+
hint: 'Comma-separated email addresses',
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
type: 'select',
|
|
219
219
|
name: 'team',
|
|
220
|
-
label: '
|
|
220
|
+
label: 'Team',
|
|
221
221
|
options: [
|
|
222
222
|
{ text: 'Frontend', value: 'frontend' },
|
|
223
223
|
{ text: 'Backend', value: 'backend' },
|
|
@@ -230,126 +230,126 @@ const FORM_TEMPLATES = {
|
|
|
230
230
|
],
|
|
231
231
|
},
|
|
232
232
|
survey_form: {
|
|
233
|
-
title: '
|
|
234
|
-
close_text: '
|
|
235
|
-
submit_text: '
|
|
233
|
+
title: 'Employee survey',
|
|
234
|
+
close_text: 'Cancel',
|
|
235
|
+
submit_text: 'Submit answers',
|
|
236
236
|
blocks: [
|
|
237
237
|
{
|
|
238
238
|
type: 'header',
|
|
239
|
-
text: '
|
|
239
|
+
text: 'Feedback survey',
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
type: 'plain_text',
|
|
243
|
-
text: '
|
|
243
|
+
text: 'Please answer the questions honestly. Your responses will help improve the company.',
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
type: 'radio',
|
|
247
247
|
name: 'satisfaction',
|
|
248
|
-
label: '
|
|
248
|
+
label: 'How satisfied are you with working at the company?',
|
|
249
249
|
options: [
|
|
250
|
-
{ text: '
|
|
251
|
-
{ text: '
|
|
252
|
-
{ text: '
|
|
253
|
-
{ text: '
|
|
254
|
-
{ text: '
|
|
250
|
+
{ text: 'Very satisfied', value: 'very_satisfied' },
|
|
251
|
+
{ text: 'Satisfied', value: 'satisfied' },
|
|
252
|
+
{ text: 'Neutral', value: 'neutral' },
|
|
253
|
+
{ text: 'Dissatisfied', value: 'dissatisfied' },
|
|
254
|
+
{ text: 'Very dissatisfied', value: 'very_dissatisfied' },
|
|
255
255
|
],
|
|
256
256
|
required: true,
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
type: 'checkbox',
|
|
260
260
|
name: 'improvements',
|
|
261
|
-
label: '
|
|
261
|
+
label: 'What would you like to see improved?',
|
|
262
262
|
options: [
|
|
263
|
-
{ text: '
|
|
264
|
-
{ text: '
|
|
265
|
-
{ text: '
|
|
266
|
-
{ text: '
|
|
267
|
-
{ text: '
|
|
268
|
-
{ text: '
|
|
263
|
+
{ text: 'Salary', value: 'salary' },
|
|
264
|
+
{ text: 'Work conditions', value: 'work_conditions' },
|
|
265
|
+
{ text: 'Team', value: 'team' },
|
|
266
|
+
{ text: 'Projects', value: 'projects' },
|
|
267
|
+
{ text: 'Training', value: 'training' },
|
|
268
|
+
{ text: 'Career growth', value: 'career_growth' },
|
|
269
269
|
],
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
type: 'input',
|
|
273
273
|
name: 'suggestions',
|
|
274
|
-
label: '
|
|
275
|
-
placeholder: '
|
|
274
|
+
label: 'Your suggestions',
|
|
275
|
+
placeholder: 'Share ideas for improvement',
|
|
276
276
|
multiline: true,
|
|
277
277
|
},
|
|
278
278
|
],
|
|
279
279
|
},
|
|
280
280
|
access_request: {
|
|
281
|
-
title: '
|
|
282
|
-
close_text: '
|
|
283
|
-
submit_text: '
|
|
281
|
+
title: 'Access request',
|
|
282
|
+
close_text: 'Cancel',
|
|
283
|
+
submit_text: 'Submit request',
|
|
284
284
|
blocks: [
|
|
285
285
|
{
|
|
286
286
|
type: 'header',
|
|
287
|
-
text: '
|
|
287
|
+
text: 'Resource access request',
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
type: 'input',
|
|
291
291
|
name: 'employee_name',
|
|
292
|
-
label: '
|
|
293
|
-
placeholder: '
|
|
292
|
+
label: 'Employee full name',
|
|
293
|
+
placeholder: 'John Doe',
|
|
294
294
|
required: true,
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
type: 'input',
|
|
298
298
|
name: 'department',
|
|
299
|
-
label: '
|
|
300
|
-
placeholder: 'IT
|
|
299
|
+
label: 'Department',
|
|
300
|
+
placeholder: 'IT Department',
|
|
301
301
|
required: true,
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
type: 'checkbox',
|
|
305
305
|
name: 'access_types',
|
|
306
|
-
label: '
|
|
306
|
+
label: 'Access type',
|
|
307
307
|
options: [
|
|
308
|
-
{ text: '
|
|
309
|
-
{ text: '
|
|
310
|
-
{ text: '
|
|
311
|
-
{ text: '
|
|
312
|
-
{ text: 'VPN
|
|
313
|
-
{ text: '
|
|
308
|
+
{ text: 'Corporate email', value: 'email' },
|
|
309
|
+
{ text: 'Internal systems', value: 'internal_systems' },
|
|
310
|
+
{ text: 'Database', value: 'database' },
|
|
311
|
+
{ text: 'File server', value: 'file_server' },
|
|
312
|
+
{ text: 'VPN access', value: 'vpn' },
|
|
313
|
+
{ text: 'Administrative rights', value: 'admin_rights' },
|
|
314
314
|
],
|
|
315
315
|
required: true,
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
type: 'date',
|
|
319
319
|
name: 'access_start',
|
|
320
|
-
label: '
|
|
320
|
+
label: 'Access start date',
|
|
321
321
|
required: true,
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
type: 'date',
|
|
325
325
|
name: 'access_end',
|
|
326
|
-
label: '
|
|
326
|
+
label: 'Access end date',
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
type: 'input',
|
|
330
330
|
name: 'justification',
|
|
331
|
-
label: '
|
|
332
|
-
placeholder: '
|
|
331
|
+
label: 'Justification',
|
|
332
|
+
placeholder: 'Explain why access is needed',
|
|
333
333
|
multiline: true,
|
|
334
334
|
required: true,
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
type: 'file_input',
|
|
338
338
|
name: 'approval_doc',
|
|
339
|
-
label: '
|
|
339
|
+
label: 'Supporting document',
|
|
340
340
|
filetypes: ['pdf', 'doc', 'docx'],
|
|
341
341
|
max_files: 1,
|
|
342
|
-
hint: '
|
|
342
|
+
hint: 'Upload a document confirming the need for access',
|
|
343
343
|
},
|
|
344
344
|
],
|
|
345
345
|
},
|
|
346
346
|
};
|
|
347
|
-
//
|
|
347
|
+
// Form validation rules
|
|
348
348
|
const FORM_VALIDATION_RULES = {
|
|
349
349
|
timeoff_request: {
|
|
350
350
|
date_end: (value, formData) => {
|
|
351
351
|
if (new Date(value) <= new Date(formData.date_start)) {
|
|
352
|
-
return '
|
|
352
|
+
return 'End date must be after start date';
|
|
353
353
|
}
|
|
354
354
|
return null;
|
|
355
355
|
},
|
|
@@ -357,7 +357,7 @@ const FORM_VALIDATION_RULES = {
|
|
|
357
357
|
feedback_form: {
|
|
358
358
|
comment: (value) => {
|
|
359
359
|
if (value && value.length < 10) {
|
|
360
|
-
return '
|
|
360
|
+
return 'Comment must be at least 10 characters';
|
|
361
361
|
}
|
|
362
362
|
return null;
|
|
363
363
|
},
|
|
@@ -365,7 +365,7 @@ const FORM_VALIDATION_RULES = {
|
|
|
365
365
|
custom_form: {
|
|
366
366
|
text: (value) => {
|
|
367
367
|
if (!value || value.trim().length === 0) {
|
|
368
|
-
return '
|
|
368
|
+
return 'Text field cannot be empty';
|
|
369
369
|
}
|
|
370
370
|
return null;
|
|
371
371
|
},
|
|
@@ -373,13 +373,13 @@ const FORM_VALIDATION_RULES = {
|
|
|
373
373
|
task_request: {
|
|
374
374
|
title: (value) => {
|
|
375
375
|
if (value && value.length < 5) {
|
|
376
|
-
return '
|
|
376
|
+
return 'Task title must be at least 5 characters';
|
|
377
377
|
}
|
|
378
378
|
return null;
|
|
379
379
|
},
|
|
380
380
|
description: (value) => {
|
|
381
381
|
if (value && value.length < 20) {
|
|
382
|
-
return '
|
|
382
|
+
return 'Description must be at least 20 characters';
|
|
383
383
|
}
|
|
384
384
|
return null;
|
|
385
385
|
},
|
|
@@ -397,7 +397,7 @@ class Pachca {
|
|
|
397
397
|
group: ['transform'],
|
|
398
398
|
version: 1,
|
|
399
399
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
400
|
-
description: '
|
|
400
|
+
description: 'Integration with Pachca messenger',
|
|
401
401
|
defaults: {
|
|
402
402
|
name: 'Pachca',
|
|
403
403
|
},
|
|
@@ -490,31 +490,31 @@ class Pachca {
|
|
|
490
490
|
name: 'Get all users',
|
|
491
491
|
value: 'getAll',
|
|
492
492
|
action: 'Get all users',
|
|
493
|
-
description: '
|
|
493
|
+
description: 'Get list of all users',
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
name: 'Get a user',
|
|
497
497
|
value: 'getById',
|
|
498
498
|
action: 'Get a user',
|
|
499
|
-
description: '
|
|
499
|
+
description: 'Get user by ID',
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
502
|
name: 'Create a user',
|
|
503
503
|
value: 'create',
|
|
504
504
|
action: 'Create a user',
|
|
505
|
-
description: '
|
|
505
|
+
description: 'Create new user (Admin/Owner tokens only)',
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
name: 'Update a user',
|
|
509
509
|
value: 'update',
|
|
510
510
|
action: 'Update a user',
|
|
511
|
-
description: '
|
|
511
|
+
description: 'Update user (Admin/Owner tokens only)',
|
|
512
512
|
},
|
|
513
513
|
{
|
|
514
514
|
name: 'Delete a user',
|
|
515
515
|
value: 'delete',
|
|
516
516
|
action: 'Delete a user',
|
|
517
|
-
description: '
|
|
517
|
+
description: 'Delete user (Admin/Owner tokens only)',
|
|
518
518
|
},
|
|
519
519
|
],
|
|
520
520
|
default: 'getAll',
|
|
@@ -535,55 +535,55 @@ class Pachca {
|
|
|
535
535
|
name: 'Send a message',
|
|
536
536
|
value: 'send',
|
|
537
537
|
action: 'Send a message',
|
|
538
|
-
description: '
|
|
538
|
+
description: 'Send message',
|
|
539
539
|
},
|
|
540
540
|
{
|
|
541
541
|
name: 'Get a message',
|
|
542
542
|
value: 'getById',
|
|
543
543
|
action: 'Get a message',
|
|
544
|
-
description: '
|
|
544
|
+
description: 'Get message by ID',
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
name: 'Get messages from a chat',
|
|
548
548
|
value: 'getAll',
|
|
549
549
|
action: 'Get messages from a chat',
|
|
550
|
-
description: '
|
|
550
|
+
description: 'Get chat messages',
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
name: 'Update a message',
|
|
554
554
|
value: 'update',
|
|
555
555
|
action: 'Update a message',
|
|
556
|
-
description: '
|
|
556
|
+
description: 'Edit message',
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
559
|
name: 'Delete a message',
|
|
560
560
|
value: 'delete',
|
|
561
561
|
action: 'Delete a message',
|
|
562
|
-
description: '
|
|
562
|
+
description: 'Delete message (Admin/Owner tokens only)',
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
name: 'Pin a message',
|
|
566
566
|
value: 'pin',
|
|
567
567
|
action: 'Pin a message',
|
|
568
|
-
description: '
|
|
568
|
+
description: 'Pin message',
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
571
|
name: 'Unpin a message',
|
|
572
572
|
value: 'unpin',
|
|
573
573
|
action: 'Unpin a message',
|
|
574
|
-
description: '
|
|
574
|
+
description: 'Unpin message',
|
|
575
575
|
},
|
|
576
576
|
{
|
|
577
577
|
name: 'Get message readers',
|
|
578
578
|
value: 'getReadMembers',
|
|
579
579
|
action: 'Get message readers',
|
|
580
|
-
description: '
|
|
580
|
+
description: 'Get list of message readers',
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
583
|
name: 'Unfurl message links',
|
|
584
584
|
value: 'unfurl',
|
|
585
585
|
action: 'Unfurl message links',
|
|
586
|
-
description: '
|
|
586
|
+
description: 'Create link previews in message (unfurl)',
|
|
587
587
|
},
|
|
588
588
|
],
|
|
589
589
|
default: 'send',
|
|
@@ -604,67 +604,67 @@ class Pachca {
|
|
|
604
604
|
name: 'Get all chats',
|
|
605
605
|
value: 'getAll',
|
|
606
606
|
action: 'Get all chats',
|
|
607
|
-
description: '
|
|
607
|
+
description: 'Get list of all chats',
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
610
|
name: 'Get a chat',
|
|
611
611
|
value: 'getById',
|
|
612
612
|
action: 'Get a chat',
|
|
613
|
-
description: '
|
|
613
|
+
description: 'Get chat by ID',
|
|
614
614
|
},
|
|
615
615
|
{
|
|
616
616
|
name: 'Create a chat',
|
|
617
617
|
value: 'create',
|
|
618
618
|
action: 'Create a chat',
|
|
619
|
-
description: '
|
|
619
|
+
description: 'Create new chat',
|
|
620
620
|
},
|
|
621
621
|
{
|
|
622
622
|
name: 'Update a chat',
|
|
623
623
|
value: 'update',
|
|
624
624
|
action: 'Update a chat',
|
|
625
|
-
description: '
|
|
625
|
+
description: 'Update chat',
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
628
|
name: 'Archive a chat',
|
|
629
629
|
value: 'archive',
|
|
630
630
|
action: 'Archive a chat',
|
|
631
|
-
description: '
|
|
631
|
+
description: 'Archive chat',
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
634
|
name: 'Unarchive a chat',
|
|
635
635
|
value: 'unarchive',
|
|
636
636
|
action: 'Unarchive a chat',
|
|
637
|
-
description: '
|
|
637
|
+
description: 'Unarchive chat',
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
name: 'Get chat members',
|
|
641
641
|
value: 'getMembers',
|
|
642
642
|
action: 'Get chat members',
|
|
643
|
-
description: '
|
|
643
|
+
description: 'Get chat members list',
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
646
|
name: 'Add users to chat',
|
|
647
647
|
value: 'addUsers',
|
|
648
648
|
action: 'Add users to chat',
|
|
649
|
-
description: '
|
|
649
|
+
description: 'Add users to chat',
|
|
650
650
|
},
|
|
651
651
|
{
|
|
652
652
|
name: 'Remove user from chat',
|
|
653
653
|
value: 'removeUser',
|
|
654
654
|
action: 'Remove user from chat',
|
|
655
|
-
description: '
|
|
655
|
+
description: 'Remove user from chat',
|
|
656
656
|
},
|
|
657
657
|
{
|
|
658
658
|
name: 'Update user role in chat',
|
|
659
659
|
value: 'updateRole',
|
|
660
660
|
action: 'Update user role in chat',
|
|
661
|
-
description: '
|
|
661
|
+
description: 'Change user role in chat',
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
name: 'Leave a chat',
|
|
665
665
|
value: 'leaveChat',
|
|
666
666
|
action: 'Leave a chat',
|
|
667
|
-
description: '
|
|
667
|
+
description: 'Leave chat',
|
|
668
668
|
},
|
|
669
669
|
],
|
|
670
670
|
default: 'getAll',
|
|
@@ -685,49 +685,49 @@ class Pachca {
|
|
|
685
685
|
name: 'Get all group tags',
|
|
686
686
|
value: 'getAll',
|
|
687
687
|
action: 'Get all group tags',
|
|
688
|
-
description: '
|
|
688
|
+
description: 'Get list of all group tags',
|
|
689
689
|
},
|
|
690
690
|
{
|
|
691
691
|
name: 'Get a group tag',
|
|
692
692
|
value: 'getById',
|
|
693
693
|
action: 'Get a group tag',
|
|
694
|
-
description: '
|
|
694
|
+
description: 'Get group tag by ID',
|
|
695
695
|
},
|
|
696
696
|
{
|
|
697
697
|
name: 'Create a group tag',
|
|
698
698
|
value: 'create',
|
|
699
699
|
action: 'Create a group tag',
|
|
700
|
-
description: '
|
|
700
|
+
description: 'Create new group tag',
|
|
701
701
|
},
|
|
702
702
|
{
|
|
703
703
|
name: 'Update a group tag',
|
|
704
704
|
value: 'update',
|
|
705
705
|
action: 'Update a group tag',
|
|
706
|
-
description: '
|
|
706
|
+
description: 'Update group tag',
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
709
|
name: 'Delete a group tag',
|
|
710
710
|
value: 'delete',
|
|
711
711
|
action: 'Delete a group tag',
|
|
712
|
-
description: '
|
|
712
|
+
description: 'Delete group tag',
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
715
|
name: 'Get users in group tag',
|
|
716
716
|
value: 'getUsers',
|
|
717
717
|
action: 'Get users in group tag',
|
|
718
|
-
description: '
|
|
718
|
+
description: 'Get users in group tag',
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
721
|
name: 'Add tags to chat',
|
|
722
722
|
value: 'addTags',
|
|
723
723
|
action: 'Add tags to chat',
|
|
724
|
-
description: '
|
|
724
|
+
description: 'Add tags to chat',
|
|
725
725
|
},
|
|
726
726
|
{
|
|
727
727
|
name: 'Remove tag from chat',
|
|
728
728
|
value: 'removeTag',
|
|
729
729
|
action: 'Remove tag from chat',
|
|
730
|
-
description: '
|
|
730
|
+
description: 'Remove tag from chat',
|
|
731
731
|
},
|
|
732
732
|
],
|
|
733
733
|
default: 'getAll',
|
|
@@ -748,7 +748,7 @@ class Pachca {
|
|
|
748
748
|
name: 'Upload a file',
|
|
749
749
|
value: 'upload',
|
|
750
750
|
action: 'Upload a file',
|
|
751
|
-
description: '
|
|
751
|
+
description: 'Upload file (full flow: get params + upload)',
|
|
752
752
|
},
|
|
753
753
|
],
|
|
754
754
|
default: 'upload',
|
|
@@ -769,7 +769,7 @@ class Pachca {
|
|
|
769
769
|
name: 'Get custom properties',
|
|
770
770
|
value: 'getCustomProperties',
|
|
771
771
|
action: 'Get custom properties',
|
|
772
|
-
description: '
|
|
772
|
+
description: 'Get list of custom fields for entity',
|
|
773
773
|
},
|
|
774
774
|
],
|
|
775
775
|
default: 'getCustomProperties',
|
|
@@ -790,7 +790,7 @@ class Pachca {
|
|
|
790
790
|
name: 'Create a task',
|
|
791
791
|
value: 'create',
|
|
792
792
|
action: 'Create a task',
|
|
793
|
-
description: '
|
|
793
|
+
description: 'Create new reminder',
|
|
794
794
|
},
|
|
795
795
|
],
|
|
796
796
|
default: 'create',
|
|
@@ -811,7 +811,7 @@ class Pachca {
|
|
|
811
811
|
name: 'Update a bot',
|
|
812
812
|
value: 'update',
|
|
813
813
|
action: 'Update a bot',
|
|
814
|
-
description: '
|
|
814
|
+
description: 'Edit bot settings',
|
|
815
815
|
},
|
|
816
816
|
],
|
|
817
817
|
default: 'update',
|
|
@@ -832,25 +832,25 @@ class Pachca {
|
|
|
832
832
|
name: 'Get my profile',
|
|
833
833
|
value: 'getProfile',
|
|
834
834
|
action: 'Get my profile',
|
|
835
|
-
description: '
|
|
835
|
+
description: 'Get own profile info',
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
name: 'Get my status',
|
|
839
839
|
value: 'getStatus',
|
|
840
840
|
action: 'Get my status',
|
|
841
|
-
description: '
|
|
841
|
+
description: 'Get own status info',
|
|
842
842
|
},
|
|
843
843
|
{
|
|
844
844
|
name: 'Set my status',
|
|
845
845
|
value: 'updateStatus',
|
|
846
846
|
action: 'Set my status',
|
|
847
|
-
description: '
|
|
847
|
+
description: 'Set new status',
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
850
|
name: 'Clear my status',
|
|
851
851
|
value: 'deleteStatus',
|
|
852
852
|
action: 'Clear my status',
|
|
853
|
-
description: '
|
|
853
|
+
description: 'Delete own status',
|
|
854
854
|
},
|
|
855
855
|
],
|
|
856
856
|
default: 'getProfile',
|
|
@@ -871,19 +871,19 @@ class Pachca {
|
|
|
871
871
|
name: 'Add a reaction',
|
|
872
872
|
value: 'addReaction',
|
|
873
873
|
action: 'Add a reaction',
|
|
874
|
-
description: '
|
|
874
|
+
description: 'Add reaction to message',
|
|
875
875
|
},
|
|
876
876
|
{
|
|
877
877
|
name: 'Remove a reaction',
|
|
878
878
|
value: 'deleteReaction',
|
|
879
879
|
action: 'Remove a reaction',
|
|
880
|
-
description: '
|
|
880
|
+
description: 'Remove reaction from message',
|
|
881
881
|
},
|
|
882
882
|
{
|
|
883
883
|
name: 'Get message reactions',
|
|
884
884
|
value: 'getReactions',
|
|
885
885
|
action: 'Get message reactions',
|
|
886
|
-
description: '
|
|
886
|
+
description: 'Get list of reactions on message',
|
|
887
887
|
},
|
|
888
888
|
],
|
|
889
889
|
default: 'addReaction',
|
|
@@ -904,13 +904,13 @@ class Pachca {
|
|
|
904
904
|
name: 'Create a thread',
|
|
905
905
|
value: 'createThread',
|
|
906
906
|
action: 'Create a thread',
|
|
907
|
-
description: '
|
|
907
|
+
description: 'Create thread to message',
|
|
908
908
|
},
|
|
909
909
|
{
|
|
910
910
|
name: 'Get a thread',
|
|
911
911
|
value: 'getThread',
|
|
912
912
|
action: 'Get a thread',
|
|
913
|
-
description: '
|
|
913
|
+
description: 'Get thread info',
|
|
914
914
|
},
|
|
915
915
|
],
|
|
916
916
|
default: 'createThread',
|
|
@@ -931,19 +931,19 @@ class Pachca {
|
|
|
931
931
|
name: 'Create a form',
|
|
932
932
|
value: 'createView',
|
|
933
933
|
action: 'Create a form',
|
|
934
|
-
description: '
|
|
934
|
+
description: 'Create and open modal with form',
|
|
935
935
|
},
|
|
936
936
|
{
|
|
937
937
|
name: 'Process form submission',
|
|
938
938
|
value: 'processSubmission',
|
|
939
939
|
action: 'Process form submission',
|
|
940
|
-
description: '
|
|
940
|
+
description: 'Handle form submit and send response',
|
|
941
941
|
},
|
|
942
942
|
{
|
|
943
943
|
name: 'Get form templates',
|
|
944
944
|
value: 'getTemplates',
|
|
945
945
|
action: 'Get form templates',
|
|
946
|
-
description: '
|
|
946
|
+
description: 'Get list of available form templates',
|
|
947
947
|
},
|
|
948
948
|
],
|
|
949
949
|
default: 'createView',
|
|
@@ -957,17 +957,17 @@ class Pachca {
|
|
|
957
957
|
{
|
|
958
958
|
name: 'Discussion',
|
|
959
959
|
value: 'discussion',
|
|
960
|
-
description: '
|
|
960
|
+
description: 'Chat or channel',
|
|
961
961
|
},
|
|
962
962
|
{
|
|
963
963
|
name: 'User',
|
|
964
964
|
value: 'user',
|
|
965
|
-
description: '
|
|
965
|
+
description: 'Direct message to user',
|
|
966
966
|
},
|
|
967
967
|
{
|
|
968
968
|
name: 'Thread',
|
|
969
969
|
value: 'thread',
|
|
970
|
-
description: '
|
|
970
|
+
description: 'Thread comment',
|
|
971
971
|
},
|
|
972
972
|
],
|
|
973
973
|
default: 'discussion',
|
|
@@ -977,7 +977,7 @@ class Pachca {
|
|
|
977
977
|
operation: ['send'],
|
|
978
978
|
},
|
|
979
979
|
},
|
|
980
|
-
description: '
|
|
980
|
+
description: 'Entity type for sending message',
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
983
|
displayName: 'Entity ID',
|
|
@@ -990,7 +990,7 @@ class Pachca {
|
|
|
990
990
|
operation: ['send'],
|
|
991
991
|
},
|
|
992
992
|
},
|
|
993
|
-
description: '
|
|
993
|
+
description: 'Chat, user or thread ID',
|
|
994
994
|
},
|
|
995
995
|
{
|
|
996
996
|
displayName: 'Content',
|
|
@@ -1006,7 +1006,7 @@ class Pachca {
|
|
|
1006
1006
|
operation: ['send', 'update'],
|
|
1007
1007
|
},
|
|
1008
1008
|
},
|
|
1009
|
-
description: '
|
|
1009
|
+
description: 'Message text',
|
|
1010
1010
|
},
|
|
1011
1011
|
{
|
|
1012
1012
|
displayName: 'Files',
|
|
@@ -1032,7 +1032,7 @@ class Pachca {
|
|
|
1032
1032
|
name: 'key',
|
|
1033
1033
|
type: 'string',
|
|
1034
1034
|
default: '',
|
|
1035
|
-
description: '
|
|
1035
|
+
description: 'File path/key from file upload result',
|
|
1036
1036
|
required: true,
|
|
1037
1037
|
},
|
|
1038
1038
|
{
|
|
@@ -1040,7 +1040,7 @@ class Pachca {
|
|
|
1040
1040
|
name: 'name',
|
|
1041
1041
|
type: 'string',
|
|
1042
1042
|
default: '',
|
|
1043
|
-
description: '
|
|
1043
|
+
description: 'File name shown to user',
|
|
1044
1044
|
required: true,
|
|
1045
1045
|
},
|
|
1046
1046
|
{
|
|
@@ -1058,7 +1058,7 @@ class Pachca {
|
|
|
1058
1058
|
},
|
|
1059
1059
|
],
|
|
1060
1060
|
default: 'file',
|
|
1061
|
-
description: '
|
|
1061
|
+
description: 'File type',
|
|
1062
1062
|
required: true,
|
|
1063
1063
|
},
|
|
1064
1064
|
{
|
|
@@ -1066,7 +1066,7 @@ class Pachca {
|
|
|
1066
1066
|
name: 'size',
|
|
1067
1067
|
type: 'number',
|
|
1068
1068
|
default: 0,
|
|
1069
|
-
description: '
|
|
1069
|
+
description: 'File size in bytes',
|
|
1070
1070
|
required: true,
|
|
1071
1071
|
},
|
|
1072
1072
|
{
|
|
@@ -1079,7 +1079,7 @@ class Pachca {
|
|
|
1079
1079
|
fileType: ['image'],
|
|
1080
1080
|
},
|
|
1081
1081
|
},
|
|
1082
|
-
description: '
|
|
1082
|
+
description: 'Image width in pixels (images only)',
|
|
1083
1083
|
},
|
|
1084
1084
|
{
|
|
1085
1085
|
displayName: 'Height (px)',
|
|
@@ -1091,12 +1091,12 @@ class Pachca {
|
|
|
1091
1091
|
fileType: ['image'],
|
|
1092
1092
|
},
|
|
1093
1093
|
},
|
|
1094
|
-
description: '
|
|
1094
|
+
description: 'Image height in pixels (images only)',
|
|
1095
1095
|
},
|
|
1096
1096
|
],
|
|
1097
1097
|
},
|
|
1098
1098
|
],
|
|
1099
|
-
description: '
|
|
1099
|
+
description: 'Attached files',
|
|
1100
1100
|
},
|
|
1101
1101
|
{
|
|
1102
1102
|
displayName: 'Button Layout',
|
|
@@ -1104,17 +1104,17 @@ class Pachca {
|
|
|
1104
1104
|
type: 'options',
|
|
1105
1105
|
options: [
|
|
1106
1106
|
{
|
|
1107
|
-
name: 'Single Row (
|
|
1107
|
+
name: 'Single Row (all buttons in one row)',
|
|
1108
1108
|
value: 'single_row',
|
|
1109
1109
|
},
|
|
1110
1110
|
{
|
|
1111
|
-
name: 'Multiple Rows (
|
|
1111
|
+
name: 'Multiple Rows (each button on its own row)',
|
|
1112
1112
|
value: 'multiple_rows',
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
1115
|
name: 'Raw JSON',
|
|
1116
1116
|
value: 'raw_json',
|
|
1117
|
-
description: '
|
|
1117
|
+
description: 'Enter button JSON directly',
|
|
1118
1118
|
},
|
|
1119
1119
|
],
|
|
1120
1120
|
default: 'single_row',
|
|
@@ -1124,7 +1124,7 @@ class Pachca {
|
|
|
1124
1124
|
operation: ['send', 'update'],
|
|
1125
1125
|
},
|
|
1126
1126
|
},
|
|
1127
|
-
description: '
|
|
1127
|
+
description: 'Button layout style',
|
|
1128
1128
|
},
|
|
1129
1129
|
{
|
|
1130
1130
|
displayName: 'Buttons',
|
|
@@ -1151,7 +1151,7 @@ class Pachca {
|
|
|
1151
1151
|
name: 'text',
|
|
1152
1152
|
type: 'string',
|
|
1153
1153
|
default: '',
|
|
1154
|
-
description: '
|
|
1154
|
+
description: 'Button text',
|
|
1155
1155
|
},
|
|
1156
1156
|
{
|
|
1157
1157
|
displayName: 'Button Type',
|
|
@@ -1179,7 +1179,7 @@ class Pachca {
|
|
|
1179
1179
|
type: ['data'],
|
|
1180
1180
|
},
|
|
1181
1181
|
},
|
|
1182
|
-
description: '
|
|
1182
|
+
description: 'Value for Data button (sent in webhook)',
|
|
1183
1183
|
},
|
|
1184
1184
|
{
|
|
1185
1185
|
displayName: 'URL',
|
|
@@ -1191,18 +1191,18 @@ class Pachca {
|
|
|
1191
1191
|
type: ['url'],
|
|
1192
1192
|
},
|
|
1193
1193
|
},
|
|
1194
|
-
description: 'URL
|
|
1194
|
+
description: 'URL to open',
|
|
1195
1195
|
},
|
|
1196
1196
|
],
|
|
1197
1197
|
},
|
|
1198
1198
|
],
|
|
1199
|
-
description: '
|
|
1199
|
+
description: 'Message buttons (Data buttons for forms, URL buttons for links)',
|
|
1200
1200
|
},
|
|
1201
1201
|
{
|
|
1202
1202
|
displayName: 'Raw JSON Buttons',
|
|
1203
1203
|
name: 'rawJsonButtons',
|
|
1204
1204
|
type: 'json',
|
|
1205
|
-
default: '[\n [\n {"text": "👍
|
|
1205
|
+
default: '[\n [\n {"text": "👍 Agree", "data": "vote_yes"},\n {"text": "❌ Decline", "data": "vote_no"}\n ],\n [\n {"text": "🕒 Postpone by a week", "data": "pause_week"}\n ],\n [\n {"text": "My projects", "url": "https://projects.com/list"}\n ]\n]',
|
|
1206
1206
|
displayOptions: {
|
|
1207
1207
|
show: {
|
|
1208
1208
|
resource: ['message'],
|
|
@@ -1210,7 +1210,7 @@ class Pachca {
|
|
|
1210
1210
|
buttonLayout: ['raw_json'],
|
|
1211
1211
|
},
|
|
1212
1212
|
},
|
|
1213
|
-
description: 'Raw JSON
|
|
1213
|
+
description: 'Raw JSON for buttons in API format: array of arrays (each row is an array of buttons). Use button array [{...}, {...}] or rows [[{...}, {...}], [{...}]]. See example above.',
|
|
1214
1214
|
},
|
|
1215
1215
|
{
|
|
1216
1216
|
displayName: 'Message ID',
|
|
@@ -1223,7 +1223,7 @@ class Pachca {
|
|
|
1223
1223
|
operation: ['getById', 'update', 'delete', 'pin', 'unpin', 'getReadMembers'],
|
|
1224
1224
|
},
|
|
1225
1225
|
},
|
|
1226
|
-
description: 'ID
|
|
1226
|
+
description: 'Message ID',
|
|
1227
1227
|
},
|
|
1228
1228
|
{
|
|
1229
1229
|
displayName: 'Chat ID',
|
|
@@ -1236,7 +1236,7 @@ class Pachca {
|
|
|
1236
1236
|
operation: ['getAll'],
|
|
1237
1237
|
},
|
|
1238
1238
|
},
|
|
1239
|
-
description: 'ID
|
|
1239
|
+
description: 'Chat ID to get messages from',
|
|
1240
1240
|
},
|
|
1241
1241
|
{
|
|
1242
1242
|
displayName: 'Get All Users (No Limit)',
|
|
@@ -1249,7 +1249,7 @@ class Pachca {
|
|
|
1249
1249
|
operation: ['getAll'],
|
|
1250
1250
|
},
|
|
1251
1251
|
},
|
|
1252
|
-
description: '
|
|
1252
|
+
description: 'Get all users with full pagination (ignores per/page)',
|
|
1253
1253
|
},
|
|
1254
1254
|
{
|
|
1255
1255
|
displayName: 'Per Page',
|
|
@@ -1263,7 +1263,7 @@ class Pachca {
|
|
|
1263
1263
|
getAllUsersNoLimit: [false],
|
|
1264
1264
|
},
|
|
1265
1265
|
},
|
|
1266
|
-
description: '
|
|
1266
|
+
description: 'Items per page (max 50)',
|
|
1267
1267
|
},
|
|
1268
1268
|
{
|
|
1269
1269
|
displayName: 'Page',
|
|
@@ -1277,7 +1277,7 @@ class Pachca {
|
|
|
1277
1277
|
getAllUsersNoLimit: [false],
|
|
1278
1278
|
},
|
|
1279
1279
|
},
|
|
1280
|
-
description: '
|
|
1280
|
+
description: 'Page number',
|
|
1281
1281
|
},
|
|
1282
1282
|
// User parameters
|
|
1283
1283
|
{
|
|
@@ -1291,7 +1291,7 @@ class Pachca {
|
|
|
1291
1291
|
},
|
|
1292
1292
|
},
|
|
1293
1293
|
default: 1,
|
|
1294
|
-
description: 'ID
|
|
1294
|
+
description: 'User ID',
|
|
1295
1295
|
},
|
|
1296
1296
|
{
|
|
1297
1297
|
displayName: 'Email',
|
|
@@ -1304,7 +1304,7 @@ class Pachca {
|
|
|
1304
1304
|
},
|
|
1305
1305
|
},
|
|
1306
1306
|
default: '',
|
|
1307
|
-
description: '
|
|
1307
|
+
description: 'User email',
|
|
1308
1308
|
},
|
|
1309
1309
|
{
|
|
1310
1310
|
displayName: 'First Name',
|
|
@@ -1317,7 +1317,7 @@ class Pachca {
|
|
|
1317
1317
|
},
|
|
1318
1318
|
},
|
|
1319
1319
|
default: '',
|
|
1320
|
-
description: '
|
|
1320
|
+
description: 'User first name',
|
|
1321
1321
|
},
|
|
1322
1322
|
{
|
|
1323
1323
|
displayName: 'Last Name',
|
|
@@ -1330,7 +1330,7 @@ class Pachca {
|
|
|
1330
1330
|
},
|
|
1331
1331
|
},
|
|
1332
1332
|
default: '',
|
|
1333
|
-
description: '
|
|
1333
|
+
description: 'User last name',
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
1336
|
displayName: 'Query',
|
|
@@ -1344,7 +1344,7 @@ class Pachca {
|
|
|
1344
1344
|
},
|
|
1345
1345
|
},
|
|
1346
1346
|
default: '',
|
|
1347
|
-
description: '
|
|
1347
|
+
description: 'Search phrase to filter users',
|
|
1348
1348
|
},
|
|
1349
1349
|
{
|
|
1350
1350
|
displayName: 'Filter Role',
|
|
@@ -1372,7 +1372,7 @@ class Pachca {
|
|
|
1372
1372
|
getAllUsersNoLimit: [true],
|
|
1373
1373
|
},
|
|
1374
1374
|
},
|
|
1375
|
-
description: '
|
|
1375
|
+
description: 'Filter by user roles (if not set - all roles)',
|
|
1376
1376
|
},
|
|
1377
1377
|
{
|
|
1378
1378
|
displayName: 'Filter Bot',
|
|
@@ -1400,7 +1400,7 @@ class Pachca {
|
|
|
1400
1400
|
getAllUsersNoLimit: [true],
|
|
1401
1401
|
},
|
|
1402
1402
|
},
|
|
1403
|
-
description: '
|
|
1403
|
+
description: 'Filter by type: users or bots',
|
|
1404
1404
|
},
|
|
1405
1405
|
{
|
|
1406
1406
|
displayName: 'Filter Suspended',
|
|
@@ -1428,7 +1428,7 @@ class Pachca {
|
|
|
1428
1428
|
getAllUsersNoLimit: [true],
|
|
1429
1429
|
},
|
|
1430
1430
|
},
|
|
1431
|
-
description: '
|
|
1431
|
+
description: 'Filter by block status',
|
|
1432
1432
|
},
|
|
1433
1433
|
{
|
|
1434
1434
|
displayName: 'Filter Invite Status',
|
|
@@ -1452,7 +1452,7 @@ class Pachca {
|
|
|
1452
1452
|
getAllUsersNoLimit: [true],
|
|
1453
1453
|
},
|
|
1454
1454
|
},
|
|
1455
|
-
description: '
|
|
1455
|
+
description: 'Filter by invitation status (if not set - all statuses)',
|
|
1456
1456
|
},
|
|
1457
1457
|
{
|
|
1458
1458
|
displayName: 'Nickname',
|
|
@@ -1465,7 +1465,7 @@ class Pachca {
|
|
|
1465
1465
|
},
|
|
1466
1466
|
},
|
|
1467
1467
|
default: '',
|
|
1468
|
-
description: '
|
|
1468
|
+
description: 'User nickname',
|
|
1469
1469
|
},
|
|
1470
1470
|
{
|
|
1471
1471
|
displayName: 'Phone Number',
|
|
@@ -1478,7 +1478,7 @@ class Pachca {
|
|
|
1478
1478
|
},
|
|
1479
1479
|
},
|
|
1480
1480
|
default: '',
|
|
1481
|
-
description: '
|
|
1481
|
+
description: 'Phone number',
|
|
1482
1482
|
},
|
|
1483
1483
|
{
|
|
1484
1484
|
displayName: 'Department',
|
|
@@ -1491,7 +1491,7 @@ class Pachca {
|
|
|
1491
1491
|
},
|
|
1492
1492
|
},
|
|
1493
1493
|
default: '',
|
|
1494
|
-
description: '
|
|
1494
|
+
description: 'Department',
|
|
1495
1495
|
},
|
|
1496
1496
|
{
|
|
1497
1497
|
displayName: 'Title',
|
|
@@ -1504,7 +1504,7 @@ class Pachca {
|
|
|
1504
1504
|
},
|
|
1505
1505
|
},
|
|
1506
1506
|
default: '',
|
|
1507
|
-
description: '
|
|
1507
|
+
description: 'Job title',
|
|
1508
1508
|
},
|
|
1509
1509
|
{
|
|
1510
1510
|
displayName: 'Role',
|
|
@@ -1514,17 +1514,17 @@ class Pachca {
|
|
|
1514
1514
|
{
|
|
1515
1515
|
name: 'Admin',
|
|
1516
1516
|
value: 'admin',
|
|
1517
|
-
description: '
|
|
1517
|
+
description: 'Administrator',
|
|
1518
1518
|
},
|
|
1519
1519
|
{
|
|
1520
1520
|
name: 'User',
|
|
1521
1521
|
value: 'user',
|
|
1522
|
-
description: '
|
|
1522
|
+
description: 'Employee',
|
|
1523
1523
|
},
|
|
1524
1524
|
{
|
|
1525
1525
|
name: 'Multi Guest',
|
|
1526
1526
|
value: 'multi_guest',
|
|
1527
|
-
description: '
|
|
1527
|
+
description: 'Multi-guest',
|
|
1528
1528
|
},
|
|
1529
1529
|
],
|
|
1530
1530
|
default: 'user',
|
|
@@ -1534,7 +1534,7 @@ class Pachca {
|
|
|
1534
1534
|
operation: ['create', 'update'],
|
|
1535
1535
|
},
|
|
1536
1536
|
},
|
|
1537
|
-
description: '
|
|
1537
|
+
description: 'Access level',
|
|
1538
1538
|
},
|
|
1539
1539
|
{
|
|
1540
1540
|
displayName: 'Suspended',
|
|
@@ -1547,7 +1547,7 @@ class Pachca {
|
|
|
1547
1547
|
operation: ['update'],
|
|
1548
1548
|
},
|
|
1549
1549
|
},
|
|
1550
|
-
description: '
|
|
1550
|
+
description: 'User deactivation',
|
|
1551
1551
|
},
|
|
1552
1552
|
{
|
|
1553
1553
|
displayName: 'List Tags',
|
|
@@ -1560,7 +1560,7 @@ class Pachca {
|
|
|
1560
1560
|
operation: ['create', 'update'],
|
|
1561
1561
|
},
|
|
1562
1562
|
},
|
|
1563
|
-
description: '
|
|
1563
|
+
description: 'User tags (comma-separated)',
|
|
1564
1564
|
},
|
|
1565
1565
|
{
|
|
1566
1566
|
displayName: 'Custom Properties',
|
|
@@ -1586,19 +1586,19 @@ class Pachca {
|
|
|
1586
1586
|
name: 'id',
|
|
1587
1587
|
type: 'number',
|
|
1588
1588
|
default: 0,
|
|
1589
|
-
description: '
|
|
1589
|
+
description: 'Custom field identifier',
|
|
1590
1590
|
},
|
|
1591
1591
|
{
|
|
1592
1592
|
displayName: 'Value',
|
|
1593
1593
|
name: 'value',
|
|
1594
1594
|
type: 'string',
|
|
1595
1595
|
default: '',
|
|
1596
|
-
description: '
|
|
1596
|
+
description: 'Field value',
|
|
1597
1597
|
},
|
|
1598
1598
|
],
|
|
1599
1599
|
},
|
|
1600
1600
|
],
|
|
1601
|
-
description: '
|
|
1601
|
+
description: 'User custom fields',
|
|
1602
1602
|
},
|
|
1603
1603
|
// Chat parameters
|
|
1604
1604
|
{
|
|
@@ -1622,7 +1622,7 @@ class Pachca {
|
|
|
1622
1622
|
},
|
|
1623
1623
|
},
|
|
1624
1624
|
default: 1,
|
|
1625
|
-
description: 'ID
|
|
1625
|
+
description: 'Chat ID',
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
1628
|
displayName: 'Chat Name',
|
|
@@ -1635,7 +1635,7 @@ class Pachca {
|
|
|
1635
1635
|
},
|
|
1636
1636
|
},
|
|
1637
1637
|
default: '',
|
|
1638
|
-
description: '
|
|
1638
|
+
description: 'Chat name',
|
|
1639
1639
|
},
|
|
1640
1640
|
{
|
|
1641
1641
|
displayName: 'Channel',
|
|
@@ -1648,7 +1648,7 @@ class Pachca {
|
|
|
1648
1648
|
operation: ['create'],
|
|
1649
1649
|
},
|
|
1650
1650
|
},
|
|
1651
|
-
description: '
|
|
1651
|
+
description: 'Create channel (true) or chat (false)',
|
|
1652
1652
|
},
|
|
1653
1653
|
{
|
|
1654
1654
|
displayName: 'Public',
|
|
@@ -1661,7 +1661,7 @@ class Pachca {
|
|
|
1661
1661
|
operation: ['create'],
|
|
1662
1662
|
},
|
|
1663
1663
|
},
|
|
1664
|
-
description: '
|
|
1664
|
+
description: 'Open (true) or closed (false) access',
|
|
1665
1665
|
},
|
|
1666
1666
|
{
|
|
1667
1667
|
displayName: 'Per Page',
|
|
@@ -1674,7 +1674,7 @@ class Pachca {
|
|
|
1674
1674
|
operation: ['getAll'],
|
|
1675
1675
|
},
|
|
1676
1676
|
},
|
|
1677
|
-
description: '
|
|
1677
|
+
description: 'Items per page (max 50)',
|
|
1678
1678
|
},
|
|
1679
1679
|
{
|
|
1680
1680
|
displayName: 'Page',
|
|
@@ -1687,7 +1687,7 @@ class Pachca {
|
|
|
1687
1687
|
operation: ['getAll'],
|
|
1688
1688
|
},
|
|
1689
1689
|
},
|
|
1690
|
-
description: '
|
|
1690
|
+
description: 'Page number',
|
|
1691
1691
|
},
|
|
1692
1692
|
// Chat Members parameters
|
|
1693
1693
|
{
|
|
@@ -1698,27 +1698,27 @@ class Pachca {
|
|
|
1698
1698
|
{
|
|
1699
1699
|
name: 'All',
|
|
1700
1700
|
value: 'all',
|
|
1701
|
-
description: '
|
|
1701
|
+
description: 'Any role',
|
|
1702
1702
|
},
|
|
1703
1703
|
{
|
|
1704
1704
|
name: 'Owner',
|
|
1705
1705
|
value: 'owner',
|
|
1706
|
-
description: '
|
|
1706
|
+
description: 'Creator',
|
|
1707
1707
|
},
|
|
1708
1708
|
{
|
|
1709
1709
|
name: 'Admin',
|
|
1710
1710
|
value: 'admin',
|
|
1711
|
-
description: '
|
|
1711
|
+
description: 'Administrator',
|
|
1712
1712
|
},
|
|
1713
1713
|
{
|
|
1714
1714
|
name: 'Editor',
|
|
1715
1715
|
value: 'editor',
|
|
1716
|
-
description: '
|
|
1716
|
+
description: 'Editor',
|
|
1717
1717
|
},
|
|
1718
1718
|
{
|
|
1719
1719
|
name: 'Member',
|
|
1720
1720
|
value: 'member',
|
|
1721
|
-
description: '
|
|
1721
|
+
description: 'Member/Subscriber',
|
|
1722
1722
|
},
|
|
1723
1723
|
],
|
|
1724
1724
|
default: 'all',
|
|
@@ -1728,7 +1728,7 @@ class Pachca {
|
|
|
1728
1728
|
operation: ['getMembers'],
|
|
1729
1729
|
},
|
|
1730
1730
|
},
|
|
1731
|
-
description: '
|
|
1731
|
+
description: 'Chat role filter',
|
|
1732
1732
|
},
|
|
1733
1733
|
{
|
|
1734
1734
|
displayName: 'Limit',
|
|
@@ -1741,7 +1741,7 @@ class Pachca {
|
|
|
1741
1741
|
operation: ['getMembers'],
|
|
1742
1742
|
},
|
|
1743
1743
|
},
|
|
1744
|
-
description: '
|
|
1744
|
+
description: 'Number of members to return (max 50)',
|
|
1745
1745
|
},
|
|
1746
1746
|
{
|
|
1747
1747
|
displayName: 'Cursor',
|
|
@@ -1754,7 +1754,7 @@ class Pachca {
|
|
|
1754
1754
|
operation: ['getMembers'],
|
|
1755
1755
|
},
|
|
1756
1756
|
},
|
|
1757
|
-
description: '
|
|
1757
|
+
description: 'Pagination cursor (from meta.paginate.next_page)',
|
|
1758
1758
|
},
|
|
1759
1759
|
{
|
|
1760
1760
|
displayName: 'Member IDs',
|
|
@@ -1767,7 +1767,7 @@ class Pachca {
|
|
|
1767
1767
|
operation: ['addUsers'],
|
|
1768
1768
|
},
|
|
1769
1769
|
},
|
|
1770
|
-
description: '
|
|
1770
|
+
description: 'Comma-separated user IDs (e.g. 186,187)',
|
|
1771
1771
|
},
|
|
1772
1772
|
{
|
|
1773
1773
|
displayName: 'Silent',
|
|
@@ -1780,7 +1780,7 @@ class Pachca {
|
|
|
1780
1780
|
operation: ['addUsers'],
|
|
1781
1781
|
},
|
|
1782
1782
|
},
|
|
1783
|
-
description: '
|
|
1783
|
+
description: 'Do not create system message about adding member',
|
|
1784
1784
|
},
|
|
1785
1785
|
{
|
|
1786
1786
|
displayName: 'User ID',
|
|
@@ -1793,7 +1793,7 @@ class Pachca {
|
|
|
1793
1793
|
operation: ['removeUser', 'updateRole'],
|
|
1794
1794
|
},
|
|
1795
1795
|
},
|
|
1796
|
-
description: 'ID
|
|
1796
|
+
description: 'User ID',
|
|
1797
1797
|
},
|
|
1798
1798
|
{
|
|
1799
1799
|
displayName: 'New Role',
|
|
@@ -1803,17 +1803,17 @@ class Pachca {
|
|
|
1803
1803
|
{
|
|
1804
1804
|
name: 'Admin',
|
|
1805
1805
|
value: 'admin',
|
|
1806
|
-
description: '
|
|
1806
|
+
description: 'Administrator',
|
|
1807
1807
|
},
|
|
1808
1808
|
{
|
|
1809
1809
|
name: 'Editor',
|
|
1810
1810
|
value: 'editor',
|
|
1811
|
-
description: '
|
|
1811
|
+
description: 'Editor (channels only)',
|
|
1812
1812
|
},
|
|
1813
1813
|
{
|
|
1814
1814
|
name: 'Member',
|
|
1815
1815
|
value: 'member',
|
|
1816
|
-
description: '
|
|
1816
|
+
description: 'Member/Subscriber',
|
|
1817
1817
|
},
|
|
1818
1818
|
],
|
|
1819
1819
|
default: 'member',
|
|
@@ -1823,7 +1823,7 @@ class Pachca {
|
|
|
1823
1823
|
operation: ['updateRole'],
|
|
1824
1824
|
},
|
|
1825
1825
|
},
|
|
1826
|
-
description: '
|
|
1826
|
+
description: 'New user role',
|
|
1827
1827
|
},
|
|
1828
1828
|
// Group Tag parameters
|
|
1829
1829
|
{
|
|
@@ -1837,7 +1837,7 @@ class Pachca {
|
|
|
1837
1837
|
},
|
|
1838
1838
|
},
|
|
1839
1839
|
default: 1,
|
|
1840
|
-
description: '
|
|
1840
|
+
description: 'Group tag ID',
|
|
1841
1841
|
},
|
|
1842
1842
|
{
|
|
1843
1843
|
displayName: 'Group Tag Name',
|
|
@@ -1850,7 +1850,7 @@ class Pachca {
|
|
|
1850
1850
|
},
|
|
1851
1851
|
},
|
|
1852
1852
|
default: '',
|
|
1853
|
-
description: '
|
|
1853
|
+
description: 'Group tag name',
|
|
1854
1854
|
},
|
|
1855
1855
|
{
|
|
1856
1856
|
displayName: 'Group Tag Color',
|
|
@@ -1863,7 +1863,7 @@ class Pachca {
|
|
|
1863
1863
|
},
|
|
1864
1864
|
},
|
|
1865
1865
|
default: '#000000',
|
|
1866
|
-
description: '
|
|
1866
|
+
description: 'Group tag color (hex code)',
|
|
1867
1867
|
},
|
|
1868
1868
|
{
|
|
1869
1869
|
displayName: 'Chat ID',
|
|
@@ -1876,7 +1876,7 @@ class Pachca {
|
|
|
1876
1876
|
operation: ['addTags', 'removeTag'],
|
|
1877
1877
|
},
|
|
1878
1878
|
},
|
|
1879
|
-
description: 'ID
|
|
1879
|
+
description: 'Chat ID for tag operations',
|
|
1880
1880
|
},
|
|
1881
1881
|
{
|
|
1882
1882
|
displayName: 'Group Tag IDs',
|
|
@@ -1889,7 +1889,7 @@ class Pachca {
|
|
|
1889
1889
|
operation: ['addTags'],
|
|
1890
1890
|
},
|
|
1891
1891
|
},
|
|
1892
|
-
description: '
|
|
1892
|
+
description: 'Comma-separated tag IDs (e.g. 86,18)',
|
|
1893
1893
|
},
|
|
1894
1894
|
{
|
|
1895
1895
|
displayName: 'Tag ID',
|
|
@@ -1902,7 +1902,7 @@ class Pachca {
|
|
|
1902
1902
|
operation: ['removeTag'],
|
|
1903
1903
|
},
|
|
1904
1904
|
},
|
|
1905
|
-
description: 'ID
|
|
1905
|
+
description: 'Tag ID to remove',
|
|
1906
1906
|
},
|
|
1907
1907
|
// File parameters
|
|
1908
1908
|
{
|
|
@@ -1913,12 +1913,12 @@ class Pachca {
|
|
|
1913
1913
|
{
|
|
1914
1914
|
name: 'URL',
|
|
1915
1915
|
value: 'url',
|
|
1916
|
-
description: '
|
|
1916
|
+
description: 'Download file from URL',
|
|
1917
1917
|
},
|
|
1918
1918
|
{
|
|
1919
1919
|
name: 'Binary Data',
|
|
1920
1920
|
value: 'binary',
|
|
1921
|
-
description: '
|
|
1921
|
+
description: 'Use binary data from previous node',
|
|
1922
1922
|
},
|
|
1923
1923
|
],
|
|
1924
1924
|
default: 'url',
|
|
@@ -1928,7 +1928,7 @@ class Pachca {
|
|
|
1928
1928
|
operation: ['upload'],
|
|
1929
1929
|
},
|
|
1930
1930
|
},
|
|
1931
|
-
description: '
|
|
1931
|
+
description: 'File source for upload',
|
|
1932
1932
|
},
|
|
1933
1933
|
{
|
|
1934
1934
|
displayName: 'File URL',
|
|
@@ -1942,7 +1942,7 @@ class Pachca {
|
|
|
1942
1942
|
},
|
|
1943
1943
|
},
|
|
1944
1944
|
default: '',
|
|
1945
|
-
description: 'URL
|
|
1945
|
+
description: 'File URL to download and upload to Pachca',
|
|
1946
1946
|
},
|
|
1947
1947
|
{
|
|
1948
1948
|
displayName: 'Binary Property',
|
|
@@ -1956,7 +1956,7 @@ class Pachca {
|
|
|
1956
1956
|
},
|
|
1957
1957
|
},
|
|
1958
1958
|
default: 'data',
|
|
1959
|
-
description: '
|
|
1959
|
+
description: 'Binary property name from previous node',
|
|
1960
1960
|
},
|
|
1961
1961
|
{
|
|
1962
1962
|
displayName: 'File Name',
|
|
@@ -1969,7 +1969,7 @@ class Pachca {
|
|
|
1969
1969
|
},
|
|
1970
1970
|
},
|
|
1971
1971
|
default: '',
|
|
1972
|
-
description: '
|
|
1972
|
+
description: 'File name (if not set, taken from URL or binary data)',
|
|
1973
1973
|
},
|
|
1974
1974
|
{
|
|
1975
1975
|
displayName: 'Content Type',
|
|
@@ -1982,7 +1982,7 @@ class Pachca {
|
|
|
1982
1982
|
},
|
|
1983
1983
|
},
|
|
1984
1984
|
default: 'application/octet-stream',
|
|
1985
|
-
description: 'MIME
|
|
1985
|
+
description: 'File MIME type (auto-detected if not set)',
|
|
1986
1986
|
},
|
|
1987
1987
|
// Field parameters
|
|
1988
1988
|
{
|
|
@@ -1993,12 +1993,12 @@ class Pachca {
|
|
|
1993
1993
|
{
|
|
1994
1994
|
name: 'User',
|
|
1995
1995
|
value: 'User',
|
|
1996
|
-
description: '
|
|
1996
|
+
description: 'Member',
|
|
1997
1997
|
},
|
|
1998
1998
|
{
|
|
1999
1999
|
name: 'Task',
|
|
2000
2000
|
value: 'Task',
|
|
2001
|
-
description: '
|
|
2001
|
+
description: 'Reminder',
|
|
2002
2002
|
},
|
|
2003
2003
|
],
|
|
2004
2004
|
default: 'User',
|
|
@@ -2008,7 +2008,7 @@ class Pachca {
|
|
|
2008
2008
|
operation: ['getCustomProperties'],
|
|
2009
2009
|
},
|
|
2010
2010
|
},
|
|
2011
|
-
description: '
|
|
2011
|
+
description: 'Entity type for custom fields',
|
|
2012
2012
|
},
|
|
2013
2013
|
// Task parameters
|
|
2014
2014
|
{
|
|
@@ -2019,27 +2019,27 @@ class Pachca {
|
|
|
2019
2019
|
{
|
|
2020
2020
|
name: 'Call',
|
|
2021
2021
|
value: 'call',
|
|
2022
|
-
description: '
|
|
2022
|
+
description: 'Call contact',
|
|
2023
2023
|
},
|
|
2024
2024
|
{
|
|
2025
2025
|
name: 'Meeting',
|
|
2026
2026
|
value: 'meeting',
|
|
2027
|
-
description: '
|
|
2027
|
+
description: 'Meeting',
|
|
2028
2028
|
},
|
|
2029
2029
|
{
|
|
2030
2030
|
name: 'Reminder',
|
|
2031
2031
|
value: 'reminder',
|
|
2032
|
-
description: '
|
|
2032
|
+
description: 'Simple reminder',
|
|
2033
2033
|
},
|
|
2034
2034
|
{
|
|
2035
2035
|
name: 'Event',
|
|
2036
2036
|
value: 'event',
|
|
2037
|
-
description: '
|
|
2037
|
+
description: 'Event',
|
|
2038
2038
|
},
|
|
2039
2039
|
{
|
|
2040
2040
|
name: 'Email',
|
|
2041
2041
|
value: 'email',
|
|
2042
|
-
description: '
|
|
2042
|
+
description: 'Send email',
|
|
2043
2043
|
},
|
|
2044
2044
|
],
|
|
2045
2045
|
default: 'reminder',
|
|
@@ -2049,7 +2049,7 @@ class Pachca {
|
|
|
2049
2049
|
operation: ['create'],
|
|
2050
2050
|
},
|
|
2051
2051
|
},
|
|
2052
|
-
description: '
|
|
2052
|
+
description: 'Reminder type',
|
|
2053
2053
|
},
|
|
2054
2054
|
{
|
|
2055
2055
|
displayName: 'Content',
|
|
@@ -2065,7 +2065,7 @@ class Pachca {
|
|
|
2065
2065
|
operation: ['create'],
|
|
2066
2066
|
},
|
|
2067
2067
|
},
|
|
2068
|
-
description: '
|
|
2068
|
+
description: 'Reminder description (uses type name if not set)',
|
|
2069
2069
|
},
|
|
2070
2070
|
{
|
|
2071
2071
|
displayName: 'Due At',
|
|
@@ -2078,7 +2078,7 @@ class Pachca {
|
|
|
2078
2078
|
operation: ['create'],
|
|
2079
2079
|
},
|
|
2080
2080
|
},
|
|
2081
|
-
description: '
|
|
2081
|
+
description: 'Reminder due date (ISO-8601 format)',
|
|
2082
2082
|
},
|
|
2083
2083
|
{
|
|
2084
2084
|
displayName: 'Priority',
|
|
@@ -2088,17 +2088,17 @@ class Pachca {
|
|
|
2088
2088
|
{
|
|
2089
2089
|
name: 'Normal',
|
|
2090
2090
|
value: 1,
|
|
2091
|
-
description: '
|
|
2091
|
+
description: 'Normal priority',
|
|
2092
2092
|
},
|
|
2093
2093
|
{
|
|
2094
2094
|
name: 'Important',
|
|
2095
2095
|
value: 2,
|
|
2096
|
-
description: '
|
|
2096
|
+
description: 'Important',
|
|
2097
2097
|
},
|
|
2098
2098
|
{
|
|
2099
2099
|
name: 'Very Important',
|
|
2100
2100
|
value: 3,
|
|
2101
|
-
description: '
|
|
2101
|
+
description: 'Very important',
|
|
2102
2102
|
},
|
|
2103
2103
|
],
|
|
2104
2104
|
default: 1,
|
|
@@ -2108,7 +2108,7 @@ class Pachca {
|
|
|
2108
2108
|
operation: ['create'],
|
|
2109
2109
|
},
|
|
2110
2110
|
},
|
|
2111
|
-
description: '
|
|
2111
|
+
description: 'Reminder priority',
|
|
2112
2112
|
},
|
|
2113
2113
|
{
|
|
2114
2114
|
displayName: 'Performer IDs',
|
|
@@ -2121,7 +2121,7 @@ class Pachca {
|
|
|
2121
2121
|
operation: ['create'],
|
|
2122
2122
|
},
|
|
2123
2123
|
},
|
|
2124
|
-
description: '
|
|
2124
|
+
description: 'Comma-separated responsible user IDs (if empty, you are set as responsible)',
|
|
2125
2125
|
},
|
|
2126
2126
|
{
|
|
2127
2127
|
displayName: 'Custom Properties',
|
|
@@ -2147,19 +2147,19 @@ class Pachca {
|
|
|
2147
2147
|
name: 'id',
|
|
2148
2148
|
type: 'number',
|
|
2149
2149
|
default: 0,
|
|
2150
|
-
description: '
|
|
2150
|
+
description: 'Custom field ID',
|
|
2151
2151
|
},
|
|
2152
2152
|
{
|
|
2153
2153
|
displayName: 'Value',
|
|
2154
2154
|
name: 'value',
|
|
2155
2155
|
type: 'string',
|
|
2156
2156
|
default: '',
|
|
2157
|
-
description: '
|
|
2157
|
+
description: 'Field value',
|
|
2158
2158
|
},
|
|
2159
2159
|
],
|
|
2160
2160
|
},
|
|
2161
2161
|
],
|
|
2162
|
-
description: '
|
|
2162
|
+
description: 'Reminder custom fields',
|
|
2163
2163
|
},
|
|
2164
2164
|
// Bot parameters
|
|
2165
2165
|
{
|
|
@@ -2173,7 +2173,7 @@ class Pachca {
|
|
|
2173
2173
|
operation: ['update'],
|
|
2174
2174
|
},
|
|
2175
2175
|
},
|
|
2176
|
-
description: 'ID
|
|
2176
|
+
description: 'Bot ID to edit',
|
|
2177
2177
|
},
|
|
2178
2178
|
{
|
|
2179
2179
|
displayName: 'Webhook URL',
|
|
@@ -2186,7 +2186,7 @@ class Pachca {
|
|
|
2186
2186
|
operation: ['update'],
|
|
2187
2187
|
},
|
|
2188
2188
|
},
|
|
2189
|
-
description: '
|
|
2189
|
+
description: 'Outgoing webhook URL',
|
|
2190
2190
|
},
|
|
2191
2191
|
{
|
|
2192
2192
|
displayName: 'Per Page',
|
|
@@ -2199,7 +2199,7 @@ class Pachca {
|
|
|
2199
2199
|
operation: ['getReadMembers'],
|
|
2200
2200
|
},
|
|
2201
2201
|
},
|
|
2202
|
-
description: '
|
|
2202
|
+
description: 'Number of users to return (max 300)',
|
|
2203
2203
|
},
|
|
2204
2204
|
{
|
|
2205
2205
|
displayName: 'Page',
|
|
@@ -2212,7 +2212,7 @@ class Pachca {
|
|
|
2212
2212
|
operation: ['getReadMembers'],
|
|
2213
2213
|
},
|
|
2214
2214
|
},
|
|
2215
|
-
description: '
|
|
2215
|
+
description: 'Page of readers to fetch',
|
|
2216
2216
|
},
|
|
2217
2217
|
// Link Preview parameters
|
|
2218
2218
|
{
|
|
@@ -2226,7 +2226,7 @@ class Pachca {
|
|
|
2226
2226
|
operation: ['unfurl'],
|
|
2227
2227
|
},
|
|
2228
2228
|
},
|
|
2229
|
-
description: 'ID
|
|
2229
|
+
description: 'Message ID for creating link previews (unfurl)',
|
|
2230
2230
|
},
|
|
2231
2231
|
{
|
|
2232
2232
|
displayName: 'Link Previews',
|
|
@@ -2252,7 +2252,7 @@ class Pachca {
|
|
|
2252
2252
|
name: 'url',
|
|
2253
2253
|
type: 'string',
|
|
2254
2254
|
default: '',
|
|
2255
|
-
description: 'URL
|
|
2255
|
+
description: 'Link URL for preview (unfurl)',
|
|
2256
2256
|
required: true,
|
|
2257
2257
|
},
|
|
2258
2258
|
{
|
|
@@ -2260,7 +2260,7 @@ class Pachca {
|
|
|
2260
2260
|
name: 'title',
|
|
2261
2261
|
type: 'string',
|
|
2262
2262
|
default: '',
|
|
2263
|
-
description: '
|
|
2263
|
+
description: 'Link preview title',
|
|
2264
2264
|
required: true,
|
|
2265
2265
|
},
|
|
2266
2266
|
{
|
|
@@ -2268,7 +2268,7 @@ class Pachca {
|
|
|
2268
2268
|
name: 'description',
|
|
2269
2269
|
type: 'string',
|
|
2270
2270
|
default: '',
|
|
2271
|
-
description: '
|
|
2271
|
+
description: 'Link preview description',
|
|
2272
2272
|
required: true,
|
|
2273
2273
|
},
|
|
2274
2274
|
{
|
|
@@ -2276,19 +2276,19 @@ class Pachca {
|
|
|
2276
2276
|
name: 'imageUrl',
|
|
2277
2277
|
type: 'string',
|
|
2278
2278
|
default: '',
|
|
2279
|
-
description: '
|
|
2279
|
+
description: 'Public image URL (used when no file is provided)',
|
|
2280
2280
|
},
|
|
2281
2281
|
{
|
|
2282
2282
|
displayName: 'Binary Property',
|
|
2283
2283
|
name: 'image',
|
|
2284
2284
|
type: 'string',
|
|
2285
2285
|
default: '',
|
|
2286
|
-
description: '
|
|
2286
|
+
description: 'Binary property with image (overrides Image URL)',
|
|
2287
2287
|
},
|
|
2288
2288
|
],
|
|
2289
2289
|
},
|
|
2290
2290
|
],
|
|
2291
|
-
description: '
|
|
2291
|
+
description: 'Link previews to create (unfurl). Each URL must be from the message the preview is created for.',
|
|
2292
2292
|
},
|
|
2293
2293
|
// Profile parameters
|
|
2294
2294
|
{
|
|
@@ -2302,7 +2302,7 @@ class Pachca {
|
|
|
2302
2302
|
operation: ['updateStatus'],
|
|
2303
2303
|
},
|
|
2304
2304
|
},
|
|
2305
|
-
description: '
|
|
2305
|
+
description: 'Status emoji',
|
|
2306
2306
|
},
|
|
2307
2307
|
{
|
|
2308
2308
|
displayName: 'Status Title',
|
|
@@ -2315,7 +2315,7 @@ class Pachca {
|
|
|
2315
2315
|
operation: ['updateStatus'],
|
|
2316
2316
|
},
|
|
2317
2317
|
},
|
|
2318
|
-
description: '
|
|
2318
|
+
description: 'Status text',
|
|
2319
2319
|
},
|
|
2320
2320
|
{
|
|
2321
2321
|
displayName: 'Status Expires At',
|
|
@@ -2328,7 +2328,7 @@ class Pachca {
|
|
|
2328
2328
|
operation: ['updateStatus'],
|
|
2329
2329
|
},
|
|
2330
2330
|
},
|
|
2331
|
-
description: '
|
|
2331
|
+
description: 'Status TTL (optional)',
|
|
2332
2332
|
},
|
|
2333
2333
|
// Reactions parameters
|
|
2334
2334
|
{
|
|
@@ -2342,7 +2342,7 @@ class Pachca {
|
|
|
2342
2342
|
operation: ['addReaction', 'deleteReaction', 'getReactions'],
|
|
2343
2343
|
},
|
|
2344
2344
|
},
|
|
2345
|
-
description: 'ID
|
|
2345
|
+
description: 'Message ID',
|
|
2346
2346
|
},
|
|
2347
2347
|
{
|
|
2348
2348
|
displayName: 'Reaction Code',
|
|
@@ -2355,7 +2355,7 @@ class Pachca {
|
|
|
2355
2355
|
operation: ['addReaction', 'deleteReaction'],
|
|
2356
2356
|
},
|
|
2357
2357
|
},
|
|
2358
|
-
description: '
|
|
2358
|
+
description: 'Reaction emoji (e.g. 👍, 🔥, ⭐)',
|
|
2359
2359
|
},
|
|
2360
2360
|
{
|
|
2361
2361
|
displayName: 'Per Page',
|
|
@@ -2368,7 +2368,7 @@ class Pachca {
|
|
|
2368
2368
|
operation: ['getReactions'],
|
|
2369
2369
|
},
|
|
2370
2370
|
},
|
|
2371
|
-
description: '
|
|
2371
|
+
description: 'Number of reactions to return (max 50)',
|
|
2372
2372
|
},
|
|
2373
2373
|
{
|
|
2374
2374
|
displayName: 'Page',
|
|
@@ -2381,7 +2381,7 @@ class Pachca {
|
|
|
2381
2381
|
operation: ['getReactions'],
|
|
2382
2382
|
},
|
|
2383
2383
|
},
|
|
2384
|
-
description: '
|
|
2384
|
+
description: 'Reactions page to fetch',
|
|
2385
2385
|
},
|
|
2386
2386
|
// Thread parameters
|
|
2387
2387
|
{
|
|
@@ -2395,7 +2395,7 @@ class Pachca {
|
|
|
2395
2395
|
operation: ['createThread'],
|
|
2396
2396
|
},
|
|
2397
2397
|
},
|
|
2398
|
-
description: 'ID
|
|
2398
|
+
description: 'Message ID for creating thread',
|
|
2399
2399
|
},
|
|
2400
2400
|
{
|
|
2401
2401
|
displayName: 'Thread ID',
|
|
@@ -2408,7 +2408,7 @@ class Pachca {
|
|
|
2408
2408
|
operation: ['getThread'],
|
|
2409
2409
|
},
|
|
2410
2410
|
},
|
|
2411
|
-
description: 'ID
|
|
2411
|
+
description: 'Thread ID to get info for',
|
|
2412
2412
|
},
|
|
2413
2413
|
// Form parameters
|
|
2414
2414
|
{
|
|
@@ -2419,17 +2419,17 @@ class Pachca {
|
|
|
2419
2419
|
{
|
|
2420
2420
|
name: '📋 Use Template',
|
|
2421
2421
|
value: 'template',
|
|
2422
|
-
description: '
|
|
2422
|
+
description: 'Use preset template',
|
|
2423
2423
|
},
|
|
2424
2424
|
{
|
|
2425
2425
|
name: '🎨 Visual Builder',
|
|
2426
2426
|
value: 'builder',
|
|
2427
|
-
description: '
|
|
2427
|
+
description: 'Visual form builder',
|
|
2428
2428
|
},
|
|
2429
2429
|
{
|
|
2430
2430
|
name: '🔧 Raw JSON',
|
|
2431
2431
|
value: 'json',
|
|
2432
|
-
description: '
|
|
2432
|
+
description: 'Edit JSON directly',
|
|
2433
2433
|
},
|
|
2434
2434
|
],
|
|
2435
2435
|
default: 'template',
|
|
@@ -2439,7 +2439,7 @@ class Pachca {
|
|
|
2439
2439
|
operation: ['createView'],
|
|
2440
2440
|
},
|
|
2441
2441
|
},
|
|
2442
|
-
description: '
|
|
2442
|
+
description: 'Form creation method',
|
|
2443
2443
|
},
|
|
2444
2444
|
{
|
|
2445
2445
|
displayName: 'Form Template',
|
|
@@ -2449,27 +2449,27 @@ class Pachca {
|
|
|
2449
2449
|
{
|
|
2450
2450
|
name: '📋 Timeoff Request',
|
|
2451
2451
|
value: 'timeoff_request',
|
|
2452
|
-
description: '
|
|
2452
|
+
description: 'Time-off request form',
|
|
2453
2453
|
},
|
|
2454
2454
|
{
|
|
2455
2455
|
name: '💬 Feedback Form',
|
|
2456
2456
|
value: 'feedback_form',
|
|
2457
|
-
description: '
|
|
2457
|
+
description: 'Feedback form',
|
|
2458
2458
|
},
|
|
2459
2459
|
{
|
|
2460
2460
|
name: '📝 Task Request',
|
|
2461
2461
|
value: 'task_request',
|
|
2462
|
-
description: '
|
|
2462
|
+
description: 'Task creation form',
|
|
2463
2463
|
},
|
|
2464
2464
|
{
|
|
2465
2465
|
name: '📊 Survey Form',
|
|
2466
2466
|
value: 'survey_form',
|
|
2467
|
-
description: '
|
|
2467
|
+
description: 'Survey form',
|
|
2468
2468
|
},
|
|
2469
2469
|
{
|
|
2470
2470
|
name: '🔐 Access Request',
|
|
2471
2471
|
value: 'access_request',
|
|
2472
|
-
description: '
|
|
2472
|
+
description: 'Access request form',
|
|
2473
2473
|
},
|
|
2474
2474
|
],
|
|
2475
2475
|
default: 'timeoff_request',
|
|
@@ -2480,14 +2480,14 @@ class Pachca {
|
|
|
2480
2480
|
formBuilderMode: ['template'],
|
|
2481
2481
|
},
|
|
2482
2482
|
},
|
|
2483
|
-
description: '
|
|
2483
|
+
description: 'Select form template',
|
|
2484
2484
|
},
|
|
2485
2485
|
// Настройки формы для визуального конструктора
|
|
2486
2486
|
{
|
|
2487
2487
|
displayName: 'Form Title',
|
|
2488
2488
|
name: 'formTitle',
|
|
2489
2489
|
type: 'string',
|
|
2490
|
-
default: '
|
|
2490
|
+
default: 'My form',
|
|
2491
2491
|
displayOptions: {
|
|
2492
2492
|
show: {
|
|
2493
2493
|
resource: ['form'],
|
|
@@ -2495,13 +2495,13 @@ class Pachca {
|
|
|
2495
2495
|
formBuilderMode: ['builder'],
|
|
2496
2496
|
},
|
|
2497
2497
|
},
|
|
2498
|
-
description: '
|
|
2498
|
+
description: 'Form title (max 24 characters)',
|
|
2499
2499
|
},
|
|
2500
2500
|
{
|
|
2501
2501
|
displayName: 'Close Button Text',
|
|
2502
2502
|
name: 'closeText',
|
|
2503
2503
|
type: 'string',
|
|
2504
|
-
default: '
|
|
2504
|
+
default: 'Cancel',
|
|
2505
2505
|
displayOptions: {
|
|
2506
2506
|
show: {
|
|
2507
2507
|
resource: ['form'],
|
|
@@ -2509,13 +2509,13 @@ class Pachca {
|
|
|
2509
2509
|
formBuilderMode: ['builder'],
|
|
2510
2510
|
},
|
|
2511
2511
|
},
|
|
2512
|
-
description: '
|
|
2512
|
+
description: 'Close button text (max 24 characters)',
|
|
2513
2513
|
},
|
|
2514
2514
|
{
|
|
2515
2515
|
displayName: 'Submit Button Text',
|
|
2516
2516
|
name: 'submitText',
|
|
2517
2517
|
type: 'string',
|
|
2518
|
-
default: '
|
|
2518
|
+
default: 'Submit',
|
|
2519
2519
|
displayOptions: {
|
|
2520
2520
|
show: {
|
|
2521
2521
|
resource: ['form'],
|
|
@@ -2523,7 +2523,7 @@ class Pachca {
|
|
|
2523
2523
|
formBuilderMode: ['builder'],
|
|
2524
2524
|
},
|
|
2525
2525
|
},
|
|
2526
|
-
description: '
|
|
2526
|
+
description: 'Submit button text (max 24 characters)',
|
|
2527
2527
|
},
|
|
2528
2528
|
{
|
|
2529
2529
|
displayName: 'Form Blocks',
|
|
@@ -2551,21 +2551,21 @@ class Pachca {
|
|
|
2551
2551
|
name: 'type',
|
|
2552
2552
|
type: 'options',
|
|
2553
2553
|
options: [
|
|
2554
|
-
{ name: '📝 Header', value: 'header', description: '
|
|
2555
|
-
{ name: '📄 Plain Text', value: 'plain_text', description: '
|
|
2554
|
+
{ name: '📝 Header', value: 'header', description: 'Section header' },
|
|
2555
|
+
{ name: '📄 Plain Text', value: 'plain_text', description: 'Plain text' },
|
|
2556
2556
|
{
|
|
2557
2557
|
name: '📝 Markdown Text',
|
|
2558
2558
|
value: 'markdown',
|
|
2559
|
-
description: '
|
|
2559
|
+
description: 'Formatted text',
|
|
2560
2560
|
},
|
|
2561
|
-
{ name: '➖ Divider', value: 'divider', description: '
|
|
2562
|
-
{ name: '📝 Text Input', value: 'input', description: '
|
|
2563
|
-
{ name: '📋 Select Dropdown', value: 'select', description: '
|
|
2564
|
-
{ name: '🔘 Radio Buttons', value: 'radio', description: '
|
|
2565
|
-
{ name: '☑️ Checkboxes', value: 'checkbox', description: '
|
|
2566
|
-
{ name: '📅 Date Picker', value: 'date', description: '
|
|
2567
|
-
{ name: '🕐 Time Picker', value: 'time', description: '
|
|
2568
|
-
{ name: '📎 File Upload', value: 'file_input', description: '
|
|
2561
|
+
{ name: '➖ Divider', value: 'divider', description: 'Divider' },
|
|
2562
|
+
{ name: '📝 Text Input', value: 'input', description: 'Text input' },
|
|
2563
|
+
{ name: '📋 Select Dropdown', value: 'select', description: 'Dropdown' },
|
|
2564
|
+
{ name: '🔘 Radio Buttons', value: 'radio', description: 'Radio buttons' },
|
|
2565
|
+
{ name: '☑️ Checkboxes', value: 'checkbox', description: 'Checkboxes' },
|
|
2566
|
+
{ name: '📅 Date Picker', value: 'date', description: 'Date picker' },
|
|
2567
|
+
{ name: '🕐 Time Picker', value: 'time', description: 'Time picker' },
|
|
2568
|
+
{ name: '📎 File Upload', value: 'file_input', description: 'File upload' },
|
|
2569
2569
|
],
|
|
2570
2570
|
default: 'header',
|
|
2571
2571
|
},
|
|
@@ -2580,7 +2580,7 @@ class Pachca {
|
|
|
2580
2580
|
type: ['header', 'plain_text', 'markdown'],
|
|
2581
2581
|
},
|
|
2582
2582
|
},
|
|
2583
|
-
description: '
|
|
2583
|
+
description: 'Display text',
|
|
2584
2584
|
},
|
|
2585
2585
|
// Параметры для полей ввода
|
|
2586
2586
|
{
|
|
@@ -2593,7 +2593,7 @@ class Pachca {
|
|
|
2593
2593
|
type: ['input', 'select', 'radio', 'checkbox', 'date', 'time', 'file_input'],
|
|
2594
2594
|
},
|
|
2595
2595
|
},
|
|
2596
|
-
description: '
|
|
2596
|
+
description: 'Field name (sent in webhook)',
|
|
2597
2597
|
},
|
|
2598
2598
|
{
|
|
2599
2599
|
displayName: 'Field Label',
|
|
@@ -2605,7 +2605,7 @@ class Pachca {
|
|
|
2605
2605
|
type: ['input', 'select', 'radio', 'checkbox', 'date', 'time', 'file_input'],
|
|
2606
2606
|
},
|
|
2607
2607
|
},
|
|
2608
|
-
description: '
|
|
2608
|
+
description: 'Field label',
|
|
2609
2609
|
},
|
|
2610
2610
|
{
|
|
2611
2611
|
displayName: 'Required',
|
|
@@ -2617,7 +2617,7 @@ class Pachca {
|
|
|
2617
2617
|
type: ['input', 'select', 'radio', 'checkbox', 'date', 'time', 'file_input'],
|
|
2618
2618
|
},
|
|
2619
2619
|
},
|
|
2620
|
-
description: '
|
|
2620
|
+
description: 'Required field',
|
|
2621
2621
|
},
|
|
2622
2622
|
{
|
|
2623
2623
|
displayName: 'Hint',
|
|
@@ -2629,7 +2629,7 @@ class Pachca {
|
|
|
2629
2629
|
type: ['input', 'select', 'radio', 'checkbox', 'date', 'time', 'file_input'],
|
|
2630
2630
|
},
|
|
2631
2631
|
},
|
|
2632
|
-
description: '
|
|
2632
|
+
description: 'Hint below field',
|
|
2633
2633
|
},
|
|
2634
2634
|
// Специфичные параметры для input
|
|
2635
2635
|
{
|
|
@@ -2642,7 +2642,7 @@ class Pachca {
|
|
|
2642
2642
|
type: ['input'],
|
|
2643
2643
|
},
|
|
2644
2644
|
},
|
|
2645
|
-
description: '
|
|
2645
|
+
description: 'Placeholder text',
|
|
2646
2646
|
},
|
|
2647
2647
|
{
|
|
2648
2648
|
displayName: 'Multiline',
|
|
@@ -2654,7 +2654,7 @@ class Pachca {
|
|
|
2654
2654
|
type: ['input'],
|
|
2655
2655
|
},
|
|
2656
2656
|
},
|
|
2657
|
-
description: '
|
|
2657
|
+
description: 'Multiline field',
|
|
2658
2658
|
},
|
|
2659
2659
|
{
|
|
2660
2660
|
displayName: 'Initial Value',
|
|
@@ -2666,7 +2666,7 @@ class Pachca {
|
|
|
2666
2666
|
type: ['input'],
|
|
2667
2667
|
},
|
|
2668
2668
|
},
|
|
2669
|
-
description: '
|
|
2669
|
+
description: 'Default value',
|
|
2670
2670
|
},
|
|
2671
2671
|
{
|
|
2672
2672
|
displayName: 'Min Length',
|
|
@@ -2678,7 +2678,7 @@ class Pachca {
|
|
|
2678
2678
|
type: ['input'],
|
|
2679
2679
|
},
|
|
2680
2680
|
},
|
|
2681
|
-
description: '
|
|
2681
|
+
description: 'Min text length',
|
|
2682
2682
|
},
|
|
2683
2683
|
{
|
|
2684
2684
|
displayName: 'Max Length',
|
|
@@ -2690,7 +2690,7 @@ class Pachca {
|
|
|
2690
2690
|
type: ['input'],
|
|
2691
2691
|
},
|
|
2692
2692
|
},
|
|
2693
|
-
description: '
|
|
2693
|
+
description: 'Max text length',
|
|
2694
2694
|
},
|
|
2695
2695
|
// Параметры для select, radio, checkbox
|
|
2696
2696
|
{
|
|
@@ -2716,40 +2716,40 @@ class Pachca {
|
|
|
2716
2716
|
name: 'text',
|
|
2717
2717
|
type: 'string',
|
|
2718
2718
|
default: '',
|
|
2719
|
-
description: '
|
|
2719
|
+
description: 'Display text',
|
|
2720
2720
|
},
|
|
2721
2721
|
{
|
|
2722
2722
|
displayName: 'Value',
|
|
2723
2723
|
name: 'value',
|
|
2724
2724
|
type: 'string',
|
|
2725
2725
|
default: '',
|
|
2726
|
-
description: '
|
|
2726
|
+
description: 'Value to submit',
|
|
2727
2727
|
},
|
|
2728
2728
|
{
|
|
2729
2729
|
displayName: 'Description',
|
|
2730
2730
|
name: 'description',
|
|
2731
2731
|
type: 'string',
|
|
2732
2732
|
default: '',
|
|
2733
|
-
description: '
|
|
2733
|
+
description: 'Option description (radio/checkbox)',
|
|
2734
2734
|
},
|
|
2735
2735
|
{
|
|
2736
2736
|
displayName: 'Selected',
|
|
2737
2737
|
name: 'selected',
|
|
2738
2738
|
type: 'boolean',
|
|
2739
2739
|
default: false,
|
|
2740
|
-
description: '
|
|
2740
|
+
description: 'Selected by default (select/radio)',
|
|
2741
2741
|
},
|
|
2742
2742
|
{
|
|
2743
2743
|
displayName: 'Checked',
|
|
2744
2744
|
name: 'checked',
|
|
2745
2745
|
type: 'boolean',
|
|
2746
2746
|
default: false,
|
|
2747
|
-
description: '
|
|
2747
|
+
description: 'Checked by default (checkbox)',
|
|
2748
2748
|
},
|
|
2749
2749
|
],
|
|
2750
2750
|
},
|
|
2751
2751
|
],
|
|
2752
|
-
description: '
|
|
2752
|
+
description: 'Choice options',
|
|
2753
2753
|
},
|
|
2754
2754
|
// Параметры для date
|
|
2755
2755
|
{
|
|
@@ -2762,7 +2762,7 @@ class Pachca {
|
|
|
2762
2762
|
type: ['date'],
|
|
2763
2763
|
},
|
|
2764
2764
|
},
|
|
2765
|
-
description: '
|
|
2765
|
+
description: 'Initial date (YYYY-MM-DD)',
|
|
2766
2766
|
},
|
|
2767
2767
|
// Параметры для time
|
|
2768
2768
|
{
|
|
@@ -2775,7 +2775,7 @@ class Pachca {
|
|
|
2775
2775
|
type: ['time'],
|
|
2776
2776
|
},
|
|
2777
2777
|
},
|
|
2778
|
-
description: '
|
|
2778
|
+
description: 'Initial time (HH:mm)',
|
|
2779
2779
|
},
|
|
2780
2780
|
// Параметры для file_input
|
|
2781
2781
|
{
|
|
@@ -2788,7 +2788,7 @@ class Pachca {
|
|
|
2788
2788
|
type: ['file_input'],
|
|
2789
2789
|
},
|
|
2790
2790
|
},
|
|
2791
|
-
description: '
|
|
2791
|
+
description: 'Allowed file types (comma-separated, e.g. pdf,jpg,png)',
|
|
2792
2792
|
},
|
|
2793
2793
|
{
|
|
2794
2794
|
displayName: 'Max Files',
|
|
@@ -2800,19 +2800,19 @@ class Pachca {
|
|
|
2800
2800
|
type: ['file_input'],
|
|
2801
2801
|
},
|
|
2802
2802
|
},
|
|
2803
|
-
description: '
|
|
2803
|
+
description: 'Max number of files',
|
|
2804
2804
|
},
|
|
2805
2805
|
],
|
|
2806
2806
|
},
|
|
2807
2807
|
],
|
|
2808
|
-
description: '
|
|
2808
|
+
description: 'Form blocks - add elements to build the form',
|
|
2809
2809
|
},
|
|
2810
2810
|
// JSON редактор для продвинутых пользователей
|
|
2811
2811
|
{
|
|
2812
2812
|
displayName: 'Custom Form JSON',
|
|
2813
2813
|
name: 'customFormJson',
|
|
2814
2814
|
type: 'json',
|
|
2815
|
-
default: '{\n "title": "
|
|
2815
|
+
default: '{\n "title": "My form",\n "close_text": "Cancel",\n "submit_text": "Submit",\n "blocks": [\n {\n "type": "header",\n "text": "Form title"\n },\n {\n "type": "input",\n "name": "field1",\n "label": "Input field",\n "placeholder": "Enter text",\n "required": true\n },\n {\n "type": "select",\n "name": "choice",\n "label": "Choose option",\n "options": [\n {"text": "Option 1", "value": "option1", "selected": true},\n {"text": "Option 2", "value": "option2"}\n ],\n "required": true\n }\n ]\n}',
|
|
2816
2816
|
displayOptions: {
|
|
2817
2817
|
show: {
|
|
2818
2818
|
resource: ['form'],
|
|
@@ -2820,7 +2820,7 @@ class Pachca {
|
|
|
2820
2820
|
formBuilderMode: ['json'],
|
|
2821
2821
|
},
|
|
2822
2822
|
},
|
|
2823
|
-
description: 'JSON
|
|
2823
|
+
description: 'JSON structure for custom form. Use blocks: header, plain_text, markdown, divider, input, select, radio, checkbox, date, time, file_input',
|
|
2824
2824
|
},
|
|
2825
2825
|
{
|
|
2826
2826
|
displayName: 'Trigger ID',
|
|
@@ -2833,7 +2833,7 @@ class Pachca {
|
|
|
2833
2833
|
operation: ['createView'],
|
|
2834
2834
|
},
|
|
2835
2835
|
},
|
|
2836
|
-
description: '
|
|
2836
|
+
description: 'Unique event ID (from button webhook)',
|
|
2837
2837
|
},
|
|
2838
2838
|
{
|
|
2839
2839
|
displayName: 'Private Metadata',
|
|
@@ -2846,7 +2846,7 @@ class Pachca {
|
|
|
2846
2846
|
operation: ['createView'],
|
|
2847
2847
|
},
|
|
2848
2848
|
},
|
|
2849
|
-
description: '
|
|
2849
|
+
description: 'Extra data to send on form submit (JSON string)',
|
|
2850
2850
|
},
|
|
2851
2851
|
{
|
|
2852
2852
|
displayName: 'Callback ID',
|
|
@@ -2859,7 +2859,7 @@ class Pachca {
|
|
|
2859
2859
|
operation: ['createView'],
|
|
2860
2860
|
},
|
|
2861
2861
|
},
|
|
2862
|
-
description: '
|
|
2862
|
+
description: 'Form identifier for matching submitted results',
|
|
2863
2863
|
},
|
|
2864
2864
|
{
|
|
2865
2865
|
displayName: 'Form Type',
|
|
@@ -2867,7 +2867,7 @@ class Pachca {
|
|
|
2867
2867
|
type: 'options',
|
|
2868
2868
|
options: [
|
|
2869
2869
|
{
|
|
2870
|
-
name: '🤖 Auto-detect (
|
|
2870
|
+
name: '🤖 Auto-detect (recommended)',
|
|
2871
2871
|
value: 'auto',
|
|
2872
2872
|
},
|
|
2873
2873
|
{
|
|
@@ -2890,7 +2890,7 @@ class Pachca {
|
|
|
2890
2890
|
operation: ['processSubmission'],
|
|
2891
2891
|
},
|
|
2892
2892
|
},
|
|
2893
|
-
description: '
|
|
2893
|
+
description: 'Form type for processing data',
|
|
2894
2894
|
},
|
|
2895
2895
|
{
|
|
2896
2896
|
displayName: 'Validation Errors',
|
|
@@ -2903,13 +2903,13 @@ class Pachca {
|
|
|
2903
2903
|
operation: ['processSubmission'],
|
|
2904
2904
|
},
|
|
2905
2905
|
},
|
|
2906
|
-
description: '
|
|
2906
|
+
description: 'Validation errors to send to user (JSON object with field names and messages)',
|
|
2907
2907
|
},
|
|
2908
2908
|
],
|
|
2909
2909
|
};
|
|
2910
2910
|
}
|
|
2911
2911
|
async execute() {
|
|
2912
|
-
var _a, _b, _c, _d, _e, _f
|
|
2912
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2913
2913
|
const items = this.getInputData();
|
|
2914
2914
|
const returnData = [];
|
|
2915
2915
|
for (let i = 0; i < items.length; i++) {
|
|
@@ -4110,14 +4110,6 @@ class Pachca {
|
|
|
4110
4110
|
});
|
|
4111
4111
|
}
|
|
4112
4112
|
catch (error) {
|
|
4113
|
-
console.error('Upload params request FAILED:', error);
|
|
4114
|
-
console.error('Error details:', {
|
|
4115
|
-
status: error.status,
|
|
4116
|
-
statusText: error.statusText,
|
|
4117
|
-
message: error.message,
|
|
4118
|
-
response: error.response,
|
|
4119
|
-
responseData: (_d = error.response) === null || _d === void 0 ? void 0 : _d.data,
|
|
4120
|
-
});
|
|
4121
4113
|
// Попробуем без body
|
|
4122
4114
|
try {
|
|
4123
4115
|
uploadParams = await this.helpers.httpRequestWithAuthentication.call(this, 'pachcaApi', {
|
|
@@ -4126,7 +4118,6 @@ class Pachca {
|
|
|
4126
4118
|
});
|
|
4127
4119
|
}
|
|
4128
4120
|
catch (error2) {
|
|
4129
|
-
console.error('Upload params request FAILED (without body):', error2);
|
|
4130
4121
|
throw error; // Бросаем первую ошибку
|
|
4131
4122
|
}
|
|
4132
4123
|
}
|
|
@@ -4178,14 +4169,6 @@ class Pachca {
|
|
|
4178
4169
|
});
|
|
4179
4170
|
}
|
|
4180
4171
|
catch (error) {
|
|
4181
|
-
console.error('File upload to direct_url FAILED:', error);
|
|
4182
|
-
console.error('Upload error details:', {
|
|
4183
|
-
status: error.status,
|
|
4184
|
-
statusText: error.statusText,
|
|
4185
|
-
message: error.message,
|
|
4186
|
-
response: error.response,
|
|
4187
|
-
responseData: (_e = error.response) === null || _e === void 0 ? void 0 : _e.data,
|
|
4188
|
-
});
|
|
4189
4172
|
throw error;
|
|
4190
4173
|
}
|
|
4191
4174
|
// Формируем итоговую ссылку на файл
|
|
@@ -4737,11 +4720,11 @@ class Pachca {
|
|
|
4737
4720
|
case 'processSubmission':
|
|
4738
4721
|
// Получаем данные формы из вебхука Pachca
|
|
4739
4722
|
const webhookData = this.getInputData();
|
|
4740
|
-
let formData = ((
|
|
4723
|
+
let formData = ((_d = webhookData[i]) === null || _d === void 0 ? void 0 : _d.json) || {};
|
|
4741
4724
|
const formType = this.getNodeParameter('formType', i);
|
|
4742
4725
|
const validationErrors = this.getNodeParameter('validationErrors', i);
|
|
4743
4726
|
// Проверяем режим выполнения
|
|
4744
|
-
const executionMode = (
|
|
4727
|
+
const executionMode = (_f = (_e = this.getInputData()[i]) === null || _e === void 0 ? void 0 : _e.json) === null || _f === void 0 ? void 0 : _f.executionMode;
|
|
4745
4728
|
// В режиме тестирования пропускаем проверку данных
|
|
4746
4729
|
if (executionMode === 'test') {
|
|
4747
4730
|
// В тестовом режиме создаем тестовые данные
|
|
@@ -4850,7 +4833,7 @@ class Pachca {
|
|
|
4850
4833
|
templates: Object.keys(FORM_TEMPLATES).map((key) => ({
|
|
4851
4834
|
value: key,
|
|
4852
4835
|
title: FORM_TEMPLATES[key].title,
|
|
4853
|
-
description:
|
|
4836
|
+
description: `Preset form template: ${FORM_TEMPLATES[key].title}`,
|
|
4854
4837
|
})),
|
|
4855
4838
|
};
|
|
4856
4839
|
break;
|
|
@@ -4876,7 +4859,6 @@ class Pachca {
|
|
|
4876
4859
|
}
|
|
4877
4860
|
}
|
|
4878
4861
|
catch (error) {
|
|
4879
|
-
console.error('Error in Pachca node:', error);
|
|
4880
4862
|
if (this.continueOnFail()) {
|
|
4881
4863
|
returnData.push({
|
|
4882
4864
|
json: {
|