@sendpulse/n8n-nodes-sendpulse 0.0.1

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.
Files changed (71) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +820 -0
  3. package/dist/credentials/SendPulseApi.credentials.d.ts +10 -0
  4. package/dist/credentials/SendPulseApi.credentials.js +37 -0
  5. package/dist/credentials/SendPulseApi.credentials.js.map +1 -0
  6. package/dist/credentials/SendPulseOAuth2Api.credentials.d.ts +10 -0
  7. package/dist/credentials/SendPulseOAuth2Api.credentials.js +62 -0
  8. package/dist/credentials/SendPulseOAuth2Api.credentials.js.map +1 -0
  9. package/dist/icons/sendpulse.dark.svg +4 -0
  10. package/dist/icons/sendpulse.svg +4 -0
  11. package/dist/images/mailing-list-operation.png +0 -0
  12. package/dist/images/node.png +0 -0
  13. package/dist/images/workflow1.png +0 -0
  14. package/dist/images/workflow2.png +0 -0
  15. package/dist/images/workflow3.png +0 -0
  16. package/dist/nodes/SendPulseA360/SendPulseA360.node.d.ts +4 -0
  17. package/dist/nodes/SendPulseA360/SendPulseA360.node.js +174 -0
  18. package/dist/nodes/SendPulseA360/SendPulseA360.node.js.map +1 -0
  19. package/dist/nodes/SendPulseA360/SendPulseA360.node.json +25 -0
  20. package/dist/nodes/SendPulseA360/sendpulse.svg +4 -0
  21. package/dist/nodes/SendPulseChatbots/SendPulseChatbots.node.d.ts +4 -0
  22. package/dist/nodes/SendPulseChatbots/SendPulseChatbots.node.js +489 -0
  23. package/dist/nodes/SendPulseChatbots/SendPulseChatbots.node.js.map +1 -0
  24. package/dist/nodes/SendPulseChatbots/SendPulseChatbots.node.json +25 -0
  25. package/dist/nodes/SendPulseChatbots/sendpulse.svg +4 -0
  26. package/dist/nodes/SendPulseChatbots/shared/utils.d.ts +5 -0
  27. package/dist/nodes/SendPulseChatbots/shared/utils.js +45 -0
  28. package/dist/nodes/SendPulseChatbots/shared/utils.js.map +1 -0
  29. package/dist/nodes/SendPulseCrm/SendPulseCrm.node.d.ts +4 -0
  30. package/dist/nodes/SendPulseCrm/SendPulseCrm.node.js +1750 -0
  31. package/dist/nodes/SendPulseCrm/SendPulseCrm.node.js.map +1 -0
  32. package/dist/nodes/SendPulseCrm/SendPulseCrm.node.json +25 -0
  33. package/dist/nodes/SendPulseCrm/sendpulse.svg +4 -0
  34. package/dist/nodes/SendPulseEmail/SendPulseEmail.node.d.ts +4 -0
  35. package/dist/nodes/SendPulseEmail/SendPulseEmail.node.js +992 -0
  36. package/dist/nodes/SendPulseEmail/SendPulseEmail.node.js.map +1 -0
  37. package/dist/nodes/SendPulseEmail/SendPulseEmail.node.json +25 -0
  38. package/dist/nodes/SendPulseEmail/sendpulse.svg +4 -0
  39. package/dist/nodes/SendPulseFileManager/SendPulseFileManager.node.d.ts +4 -0
  40. package/dist/nodes/SendPulseFileManager/SendPulseFileManager.node.js +234 -0
  41. package/dist/nodes/SendPulseFileManager/SendPulseFileManager.node.js.map +1 -0
  42. package/dist/nodes/SendPulseFileManager/SendPulseFileManager.node.json +25 -0
  43. package/dist/nodes/SendPulseFileManager/sendpulse.svg +4 -0
  44. package/dist/nodes/SendPulsePopUps/SendPulsePopUps.node.d.ts +4 -0
  45. package/dist/nodes/SendPulsePopUps/SendPulsePopUps.node.js +196 -0
  46. package/dist/nodes/SendPulsePopUps/SendPulsePopUps.node.js.map +1 -0
  47. package/dist/nodes/SendPulsePopUps/SendPulsePopUps.node.json +25 -0
  48. package/dist/nodes/SendPulsePopUps/sendpulse.svg +4 -0
  49. package/dist/nodes/SendPulseSms/SendPulseSms.node.d.ts +4 -0
  50. package/dist/nodes/SendPulseSms/SendPulseSms.node.js +347 -0
  51. package/dist/nodes/SendPulseSms/SendPulseSms.node.js.map +1 -0
  52. package/dist/nodes/SendPulseSms/SendPulseSms.node.json +25 -0
  53. package/dist/nodes/SendPulseSms/sendpulse.svg +4 -0
  54. package/dist/nodes/SendPulseSmtp/SendPulseSmtp.node.d.ts +4 -0
  55. package/dist/nodes/SendPulseSmtp/SendPulseSmtp.node.js +644 -0
  56. package/dist/nodes/SendPulseSmtp/SendPulseSmtp.node.js.map +1 -0
  57. package/dist/nodes/SendPulseSmtp/SendPulseSmtp.node.json +25 -0
  58. package/dist/nodes/SendPulseSmtp/sendpulse.svg +4 -0
  59. package/dist/nodes/SendPulseVerifier/SendPulseVerifier.node.d.ts +4 -0
  60. package/dist/nodes/SendPulseVerifier/SendPulseVerifier.node.js +195 -0
  61. package/dist/nodes/SendPulseVerifier/SendPulseVerifier.node.js.map +1 -0
  62. package/dist/nodes/SendPulseVerifier/SendPulseVerifier.node.json +25 -0
  63. package/dist/nodes/SendPulseVerifier/sendpulse.svg +4 -0
  64. package/dist/nodes/SendPulseWebPush/SendPulseWebPush.node.d.ts +4 -0
  65. package/dist/nodes/SendPulseWebPush/SendPulseWebPush.node.js +697 -0
  66. package/dist/nodes/SendPulseWebPush/SendPulseWebPush.node.js.map +1 -0
  67. package/dist/nodes/SendPulseWebPush/SendPulseWebPush.node.json +25 -0
  68. package/dist/nodes/SendPulseWebPush/sendpulse.svg +4 -0
  69. package/dist/package.json +67 -0
  70. package/dist/tsconfig.tsbuildinfo +1 -0
  71. package/package.json +67 -0
@@ -0,0 +1,1750 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendPulseCrm = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class SendPulseCrm {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'SendPulse CRM',
9
+ name: 'sendPulseCrm',
10
+ icon: 'file:sendpulse.svg',
11
+ group: ['transform'],
12
+ version: 1,
13
+ subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
14
+ description: 'Interact with SendPulse API',
15
+ defaults: {
16
+ name: 'SendPulse CRM',
17
+ },
18
+ usableAsTool: true,
19
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
20
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
+ credentials: [
22
+ {
23
+ name: 'sendPulseApi',
24
+ required: false,
25
+ displayOptions: {
26
+ show: {
27
+ authentication: ['accessToken'],
28
+ },
29
+ },
30
+ },
31
+ {
32
+ name: 'sendPulseOAuth2Api',
33
+ required: false,
34
+ displayOptions: {
35
+ show: {
36
+ authentication: ['oAuth2'],
37
+ },
38
+ },
39
+ },
40
+ ],
41
+ requestDefaults: {
42
+ baseURL: 'https://api.sendpulse.com/crm/v1',
43
+ headers: {
44
+ Accept: 'application/json',
45
+ 'Content-Type': 'application/json',
46
+ },
47
+ },
48
+ properties: [
49
+ {
50
+ displayName: 'Authentication',
51
+ name: 'authentication',
52
+ type: 'options',
53
+ options: [
54
+ {
55
+ name: 'Client ID & Client Secret',
56
+ value: 'oAuth2',
57
+ },
58
+ {
59
+ name: 'Access Token',
60
+ value: 'accessToken',
61
+ }
62
+ ],
63
+ default: 'oAuth2',
64
+ },
65
+ {
66
+ displayName: 'Resource',
67
+ name: 'resource',
68
+ type: 'options',
69
+ noDataExpression: true,
70
+ options: [
71
+ {
72
+ name: 'Contact',
73
+ value: 'contact',
74
+ },
75
+ {
76
+ name: 'Deal',
77
+ value: 'deal',
78
+ },
79
+ {
80
+ name: 'Pipeline',
81
+ value: 'pipeline',
82
+ },
83
+ ],
84
+ default: 'contact',
85
+ },
86
+ {
87
+ displayName: 'Operation',
88
+ name: 'operation',
89
+ type: 'options',
90
+ noDataExpression: true,
91
+ displayOptions: {
92
+ show: {
93
+ resource: ['contact'],
94
+ },
95
+ },
96
+ options: [
97
+ {
98
+ name: 'Get Many',
99
+ value: 'getMany',
100
+ description: 'Get a list of contacts',
101
+ action: 'Get many contacts',
102
+ routing: {
103
+ request: {
104
+ method: 'POST',
105
+ url: '=/contacts/get-list',
106
+ },
107
+ },
108
+ },
109
+ {
110
+ name: 'Get',
111
+ value: 'get',
112
+ description: 'Get a contact by ID',
113
+ action: 'Get a contact',
114
+ routing: {
115
+ request: {
116
+ method: 'GET',
117
+ url: '=/contacts/{{ $parameter.contactId }}',
118
+ },
119
+ },
120
+ },
121
+ {
122
+ name: 'Get by External ID',
123
+ value: 'getByExternalId',
124
+ description: 'Get a contact by external ID',
125
+ action: 'Get a contact by external ID',
126
+ routing: {
127
+ request: {
128
+ method: 'GET',
129
+ url: '=/contacts/external/{{ $parameter.externalContactId }}',
130
+ },
131
+ },
132
+ },
133
+ {
134
+ name: 'Create',
135
+ value: 'create',
136
+ description: 'Create a new contact',
137
+ action: 'Create a contact',
138
+ routing: {
139
+ request: {
140
+ method: 'POST',
141
+ url: '/contacts/create',
142
+ },
143
+ },
144
+ },
145
+ ],
146
+ default: 'getMany',
147
+ },
148
+ {
149
+ displayName: 'Operation',
150
+ name: 'operation',
151
+ type: 'options',
152
+ noDataExpression: true,
153
+ displayOptions: {
154
+ show: {
155
+ resource: ['deal'],
156
+ },
157
+ },
158
+ options: [
159
+ {
160
+ name: 'Get Many',
161
+ value: 'getMany',
162
+ description: 'Get a list of deals',
163
+ action: 'Get many deals',
164
+ routing: {
165
+ request: {
166
+ method: 'POST',
167
+ url: '=/deals/get-list',
168
+ },
169
+ },
170
+ },
171
+ {
172
+ name: 'Get',
173
+ value: 'get',
174
+ description: 'Get a deal by ID',
175
+ action: 'Get a deal',
176
+ routing: {
177
+ request: {
178
+ method: 'GET',
179
+ url: '=/deals/{{ $parameter.dealId }}',
180
+ },
181
+ },
182
+ },
183
+ {
184
+ name: 'Create',
185
+ value: 'create',
186
+ description: 'Create a new deal',
187
+ action: 'Create a deal',
188
+ routing: {
189
+ request: {
190
+ method: 'POST',
191
+ url: '/deals',
192
+ body: {
193
+ pipelineId: '={{ $parameter.pipelineId }}',
194
+ },
195
+ },
196
+ },
197
+ },
198
+ ],
199
+ default: 'getMany',
200
+ },
201
+ {
202
+ displayName: 'Operation',
203
+ name: 'operation',
204
+ type: 'options',
205
+ noDataExpression: true,
206
+ displayOptions: {
207
+ show: {
208
+ resource: ['pipeline'],
209
+ },
210
+ },
211
+ options: [
212
+ {
213
+ name: 'Get Many',
214
+ value: 'getMany',
215
+ description: 'Get a list of pipelines',
216
+ action: 'Get many pipelines',
217
+ routing: {
218
+ request: {
219
+ method: 'GET',
220
+ url: '=/pipelines',
221
+ },
222
+ },
223
+ },
224
+ {
225
+ name: 'Get',
226
+ value: 'get',
227
+ description: 'Get a pipeline by ID',
228
+ action: 'Get a pipeline',
229
+ routing: {
230
+ request: {
231
+ method: 'GET',
232
+ url: '=/pipelines/{{ $parameter.pipelineId }}',
233
+ },
234
+ },
235
+ },
236
+ {
237
+ name: 'Create',
238
+ value: 'create',
239
+ description: 'Create a new pipeline',
240
+ action: 'Create a deal',
241
+ routing: {
242
+ request: {
243
+ method: 'POST',
244
+ url: '=/pipelines',
245
+ },
246
+ },
247
+ },
248
+ ],
249
+ default: 'getMany',
250
+ },
251
+ {
252
+ displayName: 'Contact ID',
253
+ name: 'contactId',
254
+ type: 'string',
255
+ required: true,
256
+ displayOptions: {
257
+ show: {
258
+ resource: ['contact'],
259
+ operation: ['get'],
260
+ },
261
+ },
262
+ default: '',
263
+ description: 'The ID of the contact to retrieve',
264
+ },
265
+ {
266
+ displayName: 'External Contact ID',
267
+ name: 'externalContactId',
268
+ type: 'string',
269
+ required: true,
270
+ displayOptions: {
271
+ show: {
272
+ resource: ['contact'],
273
+ operation: ['getByExternalId'],
274
+ },
275
+ },
276
+ default: '',
277
+ description: 'The external ID of the contact to retrieve',
278
+ },
279
+ {
280
+ displayName: 'First Name',
281
+ name: 'firstName',
282
+ type: 'string',
283
+ required: true,
284
+ displayOptions: {
285
+ show: {
286
+ resource: ['contact'],
287
+ operation: ['create'],
288
+ },
289
+ },
290
+ default: '',
291
+ description: 'First name of the contact',
292
+ routing: {
293
+ send: {
294
+ type: 'body',
295
+ property: 'firstName',
296
+ },
297
+ },
298
+ },
299
+ {
300
+ displayName: 'Last Name',
301
+ name: 'lastName',
302
+ type: 'string',
303
+ displayOptions: {
304
+ show: {
305
+ resource: ['contact'],
306
+ operation: ['create'],
307
+ },
308
+ },
309
+ default: '',
310
+ description: 'Last name of the contact',
311
+ routing: {
312
+ send: {
313
+ type: 'body',
314
+ property: 'lastName',
315
+ },
316
+ },
317
+ },
318
+ {
319
+ displayName: 'Pipeline IDs',
320
+ name: 'pipelineIds',
321
+ type: 'fixedCollection',
322
+ required: true,
323
+ typeOptions: {
324
+ multipleValues: true,
325
+ },
326
+ displayOptions: {
327
+ show: {
328
+ resource: ['deal'],
329
+ operation: ['getMany'],
330
+ },
331
+ },
332
+ default: {},
333
+ options: [
334
+ {
335
+ name: 'id',
336
+ displayName: 'Pipeline ID',
337
+ values: [
338
+ {
339
+ displayName: 'Pipeline ID',
340
+ name: 'pipelineId',
341
+ type: 'number',
342
+ default: 0,
343
+ },
344
+ ],
345
+ },
346
+ ],
347
+ description: 'The IDs of the deals to retrieve',
348
+ placeholder: 'Add Pipeline ID',
349
+ routing: {
350
+ send: {
351
+ type: 'body',
352
+ property: 'pipelineIds',
353
+ value: '={{ $value.id.map(({ pipelineId }) => pipelineId) }}',
354
+ },
355
+ },
356
+ },
357
+ {
358
+ displayName: 'Deal ID',
359
+ name: 'dealId',
360
+ type: 'string',
361
+ required: true,
362
+ displayOptions: {
363
+ show: {
364
+ resource: ['deal'],
365
+ operation: ['get'],
366
+ },
367
+ },
368
+ default: '',
369
+ description: 'The ID of the deal to retrieve',
370
+ },
371
+ {
372
+ displayName: 'Pipeline ID',
373
+ name: 'pipelineId',
374
+ type: 'number',
375
+ required: true,
376
+ displayOptions: {
377
+ show: {
378
+ resource: ['pipeline', 'deal'],
379
+ operation: ['get', 'create'],
380
+ },
381
+ },
382
+ default: '',
383
+ description: 'The ID of the pipeline to retrieve',
384
+ },
385
+ {
386
+ displayName: 'Step ID',
387
+ name: 'stepId',
388
+ type: 'number',
389
+ required: true,
390
+ displayOptions: {
391
+ show: {
392
+ resource: ['deal'],
393
+ operation: ['create'],
394
+ },
395
+ },
396
+ default: 0,
397
+ description: 'The ID of the pipeline step (stage)',
398
+ routing: {
399
+ send: {
400
+ type: 'body',
401
+ property: 'stepId',
402
+ },
403
+ },
404
+ },
405
+ {
406
+ displayName: 'Name',
407
+ name: 'name',
408
+ type: 'string',
409
+ displayOptions: {
410
+ show: {
411
+ resource: ['pipeline'],
412
+ operation: ['create'],
413
+ },
414
+ },
415
+ default: '',
416
+ description: 'Name of the pipeline',
417
+ routing: {
418
+ send: {
419
+ type: 'body',
420
+ property: 'name',
421
+ },
422
+ },
423
+ },
424
+ {
425
+ displayName: 'Deal Name',
426
+ name: 'name',
427
+ type: 'string',
428
+ displayOptions: {
429
+ show: {
430
+ resource: ['deal'],
431
+ operation: ['create'],
432
+ },
433
+ },
434
+ default: '',
435
+ description: 'Name of the deal',
436
+ routing: {
437
+ send: {
438
+ type: 'body',
439
+ property: 'name',
440
+ },
441
+ },
442
+ },
443
+ {
444
+ displayName: 'Additional Fields',
445
+ name: 'additionalFields',
446
+ type: 'collection',
447
+ placeholder: 'Add Field',
448
+ default: {},
449
+ displayOptions: {
450
+ show: {
451
+ resource: ['contact'],
452
+ operation: ['getMany'],
453
+ },
454
+ },
455
+ options: [
456
+ {
457
+ displayName: 'Attributes',
458
+ name: 'attributes',
459
+ type: 'fixedCollection',
460
+ typeOptions: {
461
+ multipleValues: true,
462
+ },
463
+ options: [
464
+ {
465
+ name: 'attributesList',
466
+ displayName: 'Attributes List',
467
+ values: [
468
+ {
469
+ displayName: 'ID',
470
+ name: 'id',
471
+ type: 'string',
472
+ default: '',
473
+ description: 'Attribute ID',
474
+ },
475
+ {
476
+ displayName: 'Expression',
477
+ name: 'expression',
478
+ type: 'options',
479
+ options: [
480
+ {
481
+ name: '!=',
482
+ value: 'neq',
483
+ },
484
+ {
485
+ name: '<',
486
+ value: 'lt',
487
+ },
488
+ {
489
+ name: '<=',
490
+ value: 'lte',
491
+ },
492
+ {
493
+ name: '=',
494
+ value: 'eq',
495
+ },
496
+ {
497
+ name: '>',
498
+ value: 'gt',
499
+ },
500
+ {
501
+ name: '>=',
502
+ value: 'gte',
503
+ },
504
+ {
505
+ name: 'In',
506
+ value: 'in',
507
+ },
508
+ {
509
+ name: 'Like',
510
+ value: 'like',
511
+ },
512
+ ],
513
+ default: 'neq',
514
+ description: 'Attribute expression',
515
+ },
516
+ {
517
+ displayName: 'Value',
518
+ name: 'value',
519
+ type: 'string',
520
+ default: '',
521
+ description: 'Attribute value',
522
+ },
523
+ ],
524
+ },
525
+ ],
526
+ default: {},
527
+ placeholder: 'Add Attribute',
528
+ description: 'Contact attributes',
529
+ routing: {
530
+ send: {
531
+ type: 'body',
532
+ property: 'attributes',
533
+ value: '={{ $value.attributesList }}',
534
+ },
535
+ },
536
+ },
537
+ {
538
+ displayName: 'Created From',
539
+ name: 'from',
540
+ type: 'string',
541
+ validateType: 'dateTime',
542
+ default: '',
543
+ description: 'Contact creation date, filter start date',
544
+ placeholder: 'YYYY-MM-DD',
545
+ routing: {
546
+ send: {
547
+ type: 'body',
548
+ property: 'from',
549
+ },
550
+ },
551
+ },
552
+ {
553
+ displayName: 'Created To',
554
+ name: 'to',
555
+ type: 'string',
556
+ validateType: 'dateTime',
557
+ default: '',
558
+ description: 'Contact creation date, filter end date',
559
+ placeholder: 'YYYY-MM-DD',
560
+ routing: {
561
+ send: {
562
+ type: 'body',
563
+ property: 'to',
564
+ },
565
+ },
566
+ },
567
+ {
568
+ displayName: 'Email',
569
+ name: 'email',
570
+ type: 'string',
571
+ default: '',
572
+ placeholder: 'user@example.com',
573
+ description: 'Email of a contact',
574
+ routing: {
575
+ send: {
576
+ type: 'body',
577
+ property: 'email',
578
+ },
579
+ },
580
+ },
581
+ {
582
+ displayName: 'Field Conditions',
583
+ name: 'fieldValueConditions',
584
+ type: 'fixedCollection',
585
+ typeOptions: {
586
+ multipleValues: true,
587
+ },
588
+ options: [
589
+ {
590
+ name: 'conditionsList',
591
+ displayName: 'Conditions List',
592
+ values: [
593
+ {
594
+ displayName: 'Field Name',
595
+ name: 'field',
596
+ type: 'options',
597
+ options: [
598
+ {
599
+ name: 'Attributes',
600
+ value: 'attributes',
601
+ },
602
+ {
603
+ name: 'Emails',
604
+ value: 'emails',
605
+ },
606
+ {
607
+ name: 'Last Name',
608
+ value: 'lastName',
609
+ },
610
+ {
611
+ name: 'Location',
612
+ value: 'location',
613
+ },
614
+ {
615
+ name: 'Messengers',
616
+ value: 'messengers',
617
+ },
618
+ {
619
+ name: 'Phones',
620
+ value: 'phones',
621
+ },
622
+ {
623
+ name: 'Tags',
624
+ value: 'tags',
625
+ },
626
+ ],
627
+ default: 'attributes',
628
+ description: 'Contact field name',
629
+ },
630
+ {
631
+ displayName: 'Expression',
632
+ name: 'expression',
633
+ type: 'options',
634
+ options: [
635
+ {
636
+ name: '!=',
637
+ value: 'neq',
638
+ },
639
+ {
640
+ name: '<',
641
+ value: 'lt',
642
+ },
643
+ {
644
+ name: '<=',
645
+ value: 'lte',
646
+ },
647
+ {
648
+ name: '=',
649
+ value: 'eq',
650
+ },
651
+ {
652
+ name: '>',
653
+ value: 'gt',
654
+ },
655
+ {
656
+ name: '>=',
657
+ value: 'gte',
658
+ },
659
+ {
660
+ name: 'In',
661
+ value: 'in',
662
+ },
663
+ {
664
+ name: 'Like',
665
+ value: 'like',
666
+ },
667
+ ],
668
+ default: 'neq',
669
+ description: 'Field expression',
670
+ },
671
+ {
672
+ displayName: 'Value',
673
+ name: 'value',
674
+ type: 'string',
675
+ displayOptions: {
676
+ show: {
677
+ expression: ['neq', 'lt', 'lte', 'eq', 'qt', 'gte', 'like'],
678
+ },
679
+ },
680
+ default: '',
681
+ description: 'Field value',
682
+ },
683
+ {
684
+ displayName: 'Value',
685
+ name: 'value',
686
+ type: 'string',
687
+ typeOptions: {
688
+ multipleValues: true,
689
+ },
690
+ displayOptions: {
691
+ show: {
692
+ expression: ['in'],
693
+ },
694
+ },
695
+ default: '',
696
+ description: 'Field value',
697
+ },
698
+ ],
699
+ },
700
+ ],
701
+ default: {},
702
+ placeholder: 'Add Field Condition',
703
+ description: 'Contact field conditions',
704
+ routing: {
705
+ send: {
706
+ type: 'body',
707
+ property: 'fieldValueConditions',
708
+ value: '={{ $value.conditionsList }}',
709
+ },
710
+ },
711
+ },
712
+ {
713
+ displayName: 'First Name',
714
+ name: 'firstName',
715
+ type: 'string',
716
+ default: '',
717
+ description: 'First name of the contact',
718
+ routing: {
719
+ send: {
720
+ type: 'body',
721
+ property: 'firstName',
722
+ },
723
+ },
724
+ },
725
+ {
726
+ displayName: 'IDs',
727
+ name: 'ids',
728
+ type: 'number',
729
+ typeOptions: {
730
+ multipleValues: true,
731
+ },
732
+ default: '',
733
+ description: 'Contact IDs',
734
+ routing: {
735
+ send: {
736
+ type: 'body',
737
+ property: 'ids',
738
+ },
739
+ },
740
+ },
741
+ {
742
+ displayName: 'Last Name',
743
+ name: 'lastName',
744
+ type: 'string',
745
+ default: '',
746
+ description: 'Last name of the contact',
747
+ routing: {
748
+ send: {
749
+ type: 'body',
750
+ property: 'lastName',
751
+ },
752
+ },
753
+ },
754
+ {
755
+ displayName: 'Limit',
756
+ name: 'limit',
757
+ type: 'number',
758
+ typeOptions: {
759
+ minValue: 1,
760
+ maxValue: 100,
761
+ },
762
+ default: 50,
763
+ description: 'Max number of results to return',
764
+ routing: {
765
+ send: {
766
+ type: 'body',
767
+ property: 'limit',
768
+ },
769
+ },
770
+ },
771
+ {
772
+ displayName: 'Location',
773
+ name: 'location',
774
+ type: 'string',
775
+ default: '',
776
+ description: 'Contact location',
777
+ routing: {
778
+ send: {
779
+ type: 'body',
780
+ property: 'location',
781
+ },
782
+ },
783
+ },
784
+ {
785
+ displayName: 'Messenger Login',
786
+ name: 'messengerLogin',
787
+ type: 'string',
788
+ default: '',
789
+ description: 'Contact Messenger Login',
790
+ routing: {
791
+ send: {
792
+ type: 'body',
793
+ property: 'messengerLogin',
794
+ },
795
+ },
796
+ },
797
+ {
798
+ displayName: 'Messenger Type',
799
+ name: 'messengerTypeIds',
800
+ type: 'multiOptions',
801
+ options: [
802
+ {
803
+ name: 'Telegram',
804
+ value: 1,
805
+ },
806
+ {
807
+ name: 'Facebook Messenger',
808
+ value: 2,
809
+ },
810
+ {
811
+ name: 'Instagram',
812
+ value: 4,
813
+ },
814
+ {
815
+ name: 'WhatsApp',
816
+ value: 5,
817
+ },
818
+ {
819
+ name: 'Viber',
820
+ value: 6,
821
+ },
822
+ {
823
+ name: 'TikTok',
824
+ value: 8,
825
+ },
826
+ {
827
+ name: 'LinkedIn',
828
+ value: 5008,
829
+ },
830
+ ],
831
+ default: [],
832
+ description: 'Contact messenger type',
833
+ routing: {
834
+ send: {
835
+ type: 'body',
836
+ property: 'messengerTypeIds',
837
+ },
838
+ },
839
+ },
840
+ {
841
+ displayName: 'Offset',
842
+ name: 'offset',
843
+ type: 'number',
844
+ typeOptions: {
845
+ minValue: 0,
846
+ },
847
+ default: 0,
848
+ description: 'Number of results to skip',
849
+ routing: {
850
+ send: {
851
+ type: 'body',
852
+ property: 'offset',
853
+ },
854
+ },
855
+ },
856
+ {
857
+ displayName: 'Phone',
858
+ name: 'phone',
859
+ type: 'string',
860
+ default: '',
861
+ description: 'Phone number of a contact',
862
+ routing: {
863
+ send: {
864
+ type: 'body',
865
+ property: 'phone',
866
+ },
867
+ },
868
+ },
869
+ {
870
+ displayName: 'Responsible IDs',
871
+ name: 'responsibleIds',
872
+ type: 'number',
873
+ typeOptions: {
874
+ multipleValues: true,
875
+ },
876
+ default: '',
877
+ description: 'A list with the ID of users assigned to the contact',
878
+ routing: {
879
+ send: {
880
+ type: 'body',
881
+ property: 'responsibleIds',
882
+ },
883
+ },
884
+ },
885
+ {
886
+ displayName: 'Sort Direction',
887
+ name: 'sortDirection',
888
+ type: 'options',
889
+ options: [
890
+ {
891
+ name: 'Ascending',
892
+ value: 'asc',
893
+ },
894
+ {
895
+ name: 'Descending',
896
+ value: 'desc',
897
+ },
898
+ ],
899
+ default: 'asc',
900
+ description: 'Sorting direction',
901
+ routing: {
902
+ send: {
903
+ type: 'body',
904
+ property: 'sortBy.direction',
905
+ },
906
+ },
907
+ },
908
+ {
909
+ displayName: 'Sort Field',
910
+ name: 'sortField',
911
+ type: 'options',
912
+ options: [
913
+ {
914
+ name: 'Created At',
915
+ value: 'created_at',
916
+ },
917
+ {
918
+ name: 'First Name',
919
+ value: 'first_name',
920
+ },
921
+ {
922
+ name: 'ID',
923
+ value: 'id',
924
+ },
925
+ {
926
+ name: 'Responsible ID',
927
+ value: 'responsible_id',
928
+ },
929
+ ],
930
+ default: 'created_at',
931
+ description: 'Sorting field name',
932
+ routing: {
933
+ send: {
934
+ type: 'body',
935
+ property: 'sortBy.fieldName',
936
+ },
937
+ },
938
+ },
939
+ {
940
+ displayName: 'Source Type',
941
+ name: 'sourceType',
942
+ type: 'multiOptions',
943
+ options: [
944
+ {
945
+ name: '1',
946
+ value: 1,
947
+ },
948
+ {
949
+ name: 'Manually',
950
+ value: 2,
951
+ },
952
+ {
953
+ name: '3',
954
+ value: 3,
955
+ },
956
+ {
957
+ name: '4',
958
+ value: 4,
959
+ },
960
+ {
961
+ name: '5',
962
+ value: 5,
963
+ },
964
+ {
965
+ name: '6',
966
+ value: 6,
967
+ },
968
+ {
969
+ name: '8',
970
+ value: 8,
971
+ },
972
+ {
973
+ name: '9',
974
+ value: 9,
975
+ },
976
+ {
977
+ name: '10',
978
+ value: 10,
979
+ },
980
+ {
981
+ name: 'Marketplace',
982
+ value: 13,
983
+ },
984
+ ],
985
+ default: [],
986
+ description: 'Contact source type',
987
+ routing: {
988
+ send: {
989
+ type: 'body',
990
+ property: 'sourceType',
991
+ },
992
+ },
993
+ },
994
+ {
995
+ displayName: 'Tag IDs',
996
+ name: 'tagIds',
997
+ type: 'number',
998
+ typeOptions: {
999
+ multipleValues: true,
1000
+ },
1001
+ default: '',
1002
+ description: 'List of tags to assign',
1003
+ routing: {
1004
+ send: {
1005
+ type: 'body',
1006
+ property: 'tagIds',
1007
+ },
1008
+ },
1009
+ },
1010
+ {
1011
+ displayName: 'Updated From',
1012
+ name: 'updatedFrom',
1013
+ type: 'string',
1014
+ validateType: 'dateTime',
1015
+ default: '',
1016
+ description: 'Contact updated date, filter start date',
1017
+ placeholder: 'YYYY-MM-DD',
1018
+ routing: {
1019
+ send: {
1020
+ type: 'body',
1021
+ property: 'updateFrom',
1022
+ },
1023
+ },
1024
+ },
1025
+ {
1026
+ displayName: 'Updated To',
1027
+ name: 'updatedTo',
1028
+ type: 'string',
1029
+ validateType: 'dateTime',
1030
+ default: '',
1031
+ description: 'Contact updated date, filter end date',
1032
+ placeholder: 'YYYY-MM-DD',
1033
+ routing: {
1034
+ send: {
1035
+ type: 'body',
1036
+ property: 'updateTo',
1037
+ },
1038
+ },
1039
+ },
1040
+ ],
1041
+ },
1042
+ {
1043
+ displayName: 'Additional Fields',
1044
+ name: 'additionalFields',
1045
+ type: 'collection',
1046
+ placeholder: 'Add Field',
1047
+ default: {},
1048
+ displayOptions: {
1049
+ show: {
1050
+ resource: ['contact'],
1051
+ operation: ['create'],
1052
+ },
1053
+ },
1054
+ options: [
1055
+ {
1056
+ displayName: 'External ID',
1057
+ name: 'externalId',
1058
+ type: 'string',
1059
+ default: '',
1060
+ description: 'External identifier for the contact',
1061
+ routing: {
1062
+ send: {
1063
+ type: 'body',
1064
+ property: 'externalContactId',
1065
+ },
1066
+ },
1067
+ },
1068
+ {
1069
+ displayName: 'Responsible ID',
1070
+ name: 'responsibleId',
1071
+ type: 'number',
1072
+ default: '',
1073
+ description: 'Team member ID to assign to a contact',
1074
+ routing: {
1075
+ send: {
1076
+ type: 'body',
1077
+ property: 'responsibleId',
1078
+ },
1079
+ },
1080
+ },
1081
+ ],
1082
+ },
1083
+ {
1084
+ displayName: 'Additional Fields',
1085
+ name: 'additionalFields',
1086
+ type: 'collection',
1087
+ placeholder: 'Add Field',
1088
+ default: {},
1089
+ displayOptions: {
1090
+ show: {
1091
+ resource: ['deal'],
1092
+ operation: ['getMany'],
1093
+ },
1094
+ },
1095
+ options: [
1096
+ {
1097
+ displayName: 'Attributes',
1098
+ name: 'attributes',
1099
+ type: 'fixedCollection',
1100
+ typeOptions: {
1101
+ multipleValues: true,
1102
+ },
1103
+ options: [
1104
+ {
1105
+ name: 'attributesList',
1106
+ displayName: 'Attributes List',
1107
+ values: [
1108
+ {
1109
+ displayName: 'ID',
1110
+ name: 'id',
1111
+ type: 'string',
1112
+ default: '',
1113
+ description: 'Attribute ID',
1114
+ },
1115
+ {
1116
+ displayName: 'Expression',
1117
+ name: 'expression',
1118
+ type: 'options',
1119
+ options: [
1120
+ {
1121
+ name: '!=',
1122
+ value: 'neq',
1123
+ },
1124
+ {
1125
+ name: '<',
1126
+ value: 'lt',
1127
+ },
1128
+ {
1129
+ name: '<=',
1130
+ value: 'lte',
1131
+ },
1132
+ {
1133
+ name: '=',
1134
+ value: 'eq',
1135
+ },
1136
+ {
1137
+ name: '>',
1138
+ value: 'gt',
1139
+ },
1140
+ {
1141
+ name: '>=',
1142
+ value: 'gte',
1143
+ },
1144
+ {
1145
+ name: 'In',
1146
+ value: 'in',
1147
+ },
1148
+ {
1149
+ name: 'Like',
1150
+ value: 'like',
1151
+ },
1152
+ ],
1153
+ default: 'neq',
1154
+ description: 'Attribute expression',
1155
+ },
1156
+ {
1157
+ displayName: 'Value',
1158
+ name: 'value',
1159
+ type: 'string',
1160
+ default: '',
1161
+ description: 'Attribute value',
1162
+ },
1163
+ ],
1164
+ },
1165
+ ],
1166
+ default: {},
1167
+ placeholder: 'Add Attribute',
1168
+ description: 'Deal attributes',
1169
+ routing: {
1170
+ send: {
1171
+ type: 'body',
1172
+ property: 'attributes',
1173
+ value: '={{ $value.attributesList }}',
1174
+ },
1175
+ },
1176
+ },
1177
+ {
1178
+ displayName: 'Completion Date From',
1179
+ name: 'completionDateFrom',
1180
+ type: 'string',
1181
+ validateType: 'dateTime',
1182
+ default: '',
1183
+ description: 'Deal completion date from',
1184
+ placeholder: 'YYYY-MM-DD',
1185
+ routing: {
1186
+ send: {
1187
+ type: 'body',
1188
+ property: 'completionDateFrom',
1189
+ },
1190
+ },
1191
+ },
1192
+ {
1193
+ displayName: 'Completion Date To',
1194
+ name: 'completionDateTo',
1195
+ type: 'string',
1196
+ validateType: 'dateTime',
1197
+ default: '',
1198
+ description: 'Deal completion date to',
1199
+ placeholder: 'YYYY-MM-DD',
1200
+ routing: {
1201
+ send: {
1202
+ type: 'body',
1203
+ property: 'completionDateTo',
1204
+ },
1205
+ },
1206
+ },
1207
+ {
1208
+ displayName: 'Email',
1209
+ name: 'email',
1210
+ type: 'string',
1211
+ default: '',
1212
+ placeholder: 'user@example.com',
1213
+ description: 'Email of a deal contact',
1214
+ routing: {
1215
+ send: {
1216
+ type: 'body',
1217
+ property: 'email',
1218
+ },
1219
+ },
1220
+ },
1221
+ {
1222
+ displayName: 'Expiration',
1223
+ name: 'expiration',
1224
+ type: 'options',
1225
+ options: [
1226
+ {
1227
+ name: 'Without Date',
1228
+ value: 1,
1229
+ },
1230
+ {
1231
+ name: 'Overdue',
1232
+ value: 2,
1233
+ },
1234
+ {
1235
+ name: 'Within Day',
1236
+ value: 3,
1237
+ },
1238
+ {
1239
+ name: 'Within Week',
1240
+ value: 4,
1241
+ },
1242
+ {
1243
+ name: 'Within Month',
1244
+ value: 5,
1245
+ },
1246
+ ],
1247
+ default: 1,
1248
+ description: 'Filter by deal expiration daten',
1249
+ routing: {
1250
+ send: {
1251
+ type: 'body',
1252
+ property: 'expiration',
1253
+ },
1254
+ },
1255
+ },
1256
+ {
1257
+ displayName: 'Filters',
1258
+ name: 'filters',
1259
+ type: 'fixedCollection',
1260
+ typeOptions: {
1261
+ multipleValues: true,
1262
+ },
1263
+ options: [
1264
+ {
1265
+ name: 'filtersList',
1266
+ displayName: 'Filters List',
1267
+ values: [
1268
+ {
1269
+ displayName: 'Name',
1270
+ name: 'name',
1271
+ type: 'options',
1272
+ options: [
1273
+ {
1274
+ name: 'Created At',
1275
+ value: 'createdAt',
1276
+ },
1277
+ {
1278
+ name: 'Currency',
1279
+ value: 'currency',
1280
+ },
1281
+ {
1282
+ name: 'ID',
1283
+ value: 'id',
1284
+ },
1285
+ {
1286
+ name: 'Name',
1287
+ value: 'name',
1288
+ },
1289
+ {
1290
+ name: 'Number',
1291
+ value: 'number',
1292
+ },
1293
+ {
1294
+ name: 'Pipeline ID',
1295
+ value: 'pipelineId',
1296
+ },
1297
+ {
1298
+ name: 'Price',
1299
+ value: 'price',
1300
+ },
1301
+ {
1302
+ name: 'Responsible ID',
1303
+ value: 'responsibleId',
1304
+ },
1305
+ {
1306
+ name: 'Source ID',
1307
+ value: 'sourceId',
1308
+ },
1309
+ {
1310
+ name: 'Source Type',
1311
+ value: 'sourceType',
1312
+ },
1313
+ {
1314
+ name: 'Status',
1315
+ value: 'status',
1316
+ },
1317
+ {
1318
+ name: 'Step ID',
1319
+ value: 'stepId',
1320
+ },
1321
+ {
1322
+ name: 'Updated At',
1323
+ value: 'updatedAt',
1324
+ },
1325
+ ],
1326
+ default: 'createdAt',
1327
+ description: 'Filter name',
1328
+ },
1329
+ {
1330
+ displayName: 'Expression',
1331
+ name: 'expression',
1332
+ type: 'options',
1333
+ options: [
1334
+ {
1335
+ name: '!=',
1336
+ value: 'neq',
1337
+ },
1338
+ {
1339
+ name: '<',
1340
+ value: 'lt',
1341
+ },
1342
+ {
1343
+ name: '<=',
1344
+ value: 'lte',
1345
+ },
1346
+ {
1347
+ name: '=',
1348
+ value: 'eq',
1349
+ },
1350
+ {
1351
+ name: '>',
1352
+ value: 'gt',
1353
+ },
1354
+ {
1355
+ name: '>=',
1356
+ value: 'gte',
1357
+ },
1358
+ {
1359
+ name: 'In',
1360
+ value: 'in',
1361
+ },
1362
+ {
1363
+ name: 'Like',
1364
+ value: 'like',
1365
+ },
1366
+ ],
1367
+ default: 'neq',
1368
+ description: 'Filter expression',
1369
+ },
1370
+ {
1371
+ displayName: 'Value',
1372
+ name: 'value',
1373
+ type: 'string',
1374
+ default: '',
1375
+ description: 'Filter value',
1376
+ },
1377
+ ],
1378
+ },
1379
+ ],
1380
+ default: {},
1381
+ placeholder: 'Add Filter',
1382
+ description: 'Deal Filters',
1383
+ routing: {
1384
+ send: {
1385
+ type: 'body',
1386
+ property: 'filter',
1387
+ value: '={{ $value.filtersList }}',
1388
+ },
1389
+ },
1390
+ },
1391
+ {
1392
+ displayName: 'First Name',
1393
+ name: 'firstName',
1394
+ type: 'string',
1395
+ default: '',
1396
+ description: 'First name of the deal contact',
1397
+ routing: {
1398
+ send: {
1399
+ type: 'body',
1400
+ property: 'firstName',
1401
+ },
1402
+ },
1403
+ },
1404
+ {
1405
+ displayName: 'Last Name',
1406
+ name: 'lastName',
1407
+ type: 'string',
1408
+ default: '',
1409
+ description: 'Last name of the deal contact',
1410
+ routing: {
1411
+ send: {
1412
+ type: 'body',
1413
+ property: 'lastName',
1414
+ },
1415
+ },
1416
+ },
1417
+ {
1418
+ displayName: 'Limit',
1419
+ name: 'limit',
1420
+ type: 'number',
1421
+ typeOptions: {
1422
+ minValue: 1,
1423
+ maxValue: 100,
1424
+ },
1425
+ default: 50,
1426
+ description: 'Max number of results to return',
1427
+ routing: {
1428
+ send: {
1429
+ type: 'body',
1430
+ property: 'limit',
1431
+ },
1432
+ },
1433
+ },
1434
+ {
1435
+ displayName: 'Name',
1436
+ name: 'name',
1437
+ type: 'string',
1438
+ default: '',
1439
+ description: 'Name of a deal',
1440
+ routing: {
1441
+ send: {
1442
+ type: 'body',
1443
+ property: 'name',
1444
+ },
1445
+ },
1446
+ },
1447
+ {
1448
+ displayName: 'Offset',
1449
+ name: 'offset',
1450
+ type: 'number',
1451
+ typeOptions: {
1452
+ minValue: 0,
1453
+ },
1454
+ default: 0,
1455
+ description: 'Number of results to skip',
1456
+ routing: {
1457
+ send: {
1458
+ type: 'body',
1459
+ property: 'offset',
1460
+ },
1461
+ },
1462
+ },
1463
+ {
1464
+ displayName: 'Phone',
1465
+ name: 'phone',
1466
+ type: 'string',
1467
+ default: '',
1468
+ description: 'Phone number of a deal contact',
1469
+ routing: {
1470
+ send: {
1471
+ type: 'body',
1472
+ property: 'phone',
1473
+ },
1474
+ },
1475
+ },
1476
+ {
1477
+ displayName: 'Sort Direction',
1478
+ name: 'sortDirection',
1479
+ type: 'options',
1480
+ options: [
1481
+ {
1482
+ name: 'Ascending',
1483
+ value: 'asc',
1484
+ },
1485
+ {
1486
+ name: 'Descending',
1487
+ value: 'desc',
1488
+ },
1489
+ ],
1490
+ default: 'asc',
1491
+ description: 'Sorting direction',
1492
+ routing: {
1493
+ send: {
1494
+ type: 'body',
1495
+ property: 'sortBy.direction',
1496
+ },
1497
+ },
1498
+ },
1499
+ {
1500
+ displayName: 'Sort Field',
1501
+ name: 'sortField',
1502
+ type: 'options',
1503
+ options: [
1504
+ {
1505
+ name: 'Created At',
1506
+ value: 'created_at',
1507
+ },
1508
+ {
1509
+ name: 'Expiration',
1510
+ value: 'expiration',
1511
+ },
1512
+ {
1513
+ name: 'ID',
1514
+ value: 'id',
1515
+ },
1516
+ {
1517
+ name: 'Name',
1518
+ value: 'name',
1519
+ },
1520
+ {
1521
+ name: 'Price',
1522
+ value: 'price',
1523
+ },
1524
+ ],
1525
+ default: 'created_at',
1526
+ description: 'Sorting field name',
1527
+ routing: {
1528
+ send: {
1529
+ type: 'body',
1530
+ property: 'sortBy.fieldName',
1531
+ },
1532
+ },
1533
+ },
1534
+ {
1535
+ displayName: 'Unlimited',
1536
+ name: 'unlimited',
1537
+ type: 'boolean',
1538
+ default: true,
1539
+ description: 'Whether to return active deals without limit',
1540
+ routing: {
1541
+ send: {
1542
+ type: 'body',
1543
+ property: 'unlimited',
1544
+ },
1545
+ },
1546
+ },
1547
+ ],
1548
+ },
1549
+ {
1550
+ displayName: 'Additional Fields',
1551
+ name: 'additionalFields',
1552
+ type: 'collection',
1553
+ placeholder: 'Add Field',
1554
+ default: {},
1555
+ displayOptions: {
1556
+ show: {
1557
+ resource: ['deal'],
1558
+ operation: ['create'],
1559
+ },
1560
+ },
1561
+ options: [
1562
+ {
1563
+ displayName: 'Attachments',
1564
+ name: 'attachments',
1565
+ type: 'string',
1566
+ typeOptions: {
1567
+ multipleValues: true,
1568
+ },
1569
+ default: '',
1570
+ description: 'List of files from file manager',
1571
+ routing: {
1572
+ send: {
1573
+ type: 'body',
1574
+ property: 'attachments',
1575
+ },
1576
+ },
1577
+ },
1578
+ {
1579
+ displayName: 'Attributes',
1580
+ name: 'attributes',
1581
+ type: 'fixedCollection',
1582
+ typeOptions: {
1583
+ multipleValues: true,
1584
+ },
1585
+ options: [
1586
+ {
1587
+ name: 'attributesList',
1588
+ displayName: 'Attributes List',
1589
+ values: [
1590
+ {
1591
+ displayName: 'ID',
1592
+ name: 'attributeId',
1593
+ type: 'number',
1594
+ default: 0,
1595
+ description: 'Attribute ID',
1596
+ },
1597
+ {
1598
+ displayName: 'Value',
1599
+ name: 'value',
1600
+ type: 'string',
1601
+ default: '',
1602
+ description: 'Attribute value',
1603
+ },
1604
+ ],
1605
+ },
1606
+ ],
1607
+ default: {},
1608
+ placeholder: 'Add Attribute',
1609
+ description: 'Custom attributes for the deal',
1610
+ routing: {
1611
+ send: {
1612
+ type: 'body',
1613
+ property: 'attributes',
1614
+ value: '={{ $value.attributesList }}',
1615
+ },
1616
+ },
1617
+ },
1618
+ {
1619
+ displayName: 'Contact IDs',
1620
+ name: 'contactIds',
1621
+ type: 'number',
1622
+ typeOptions: {
1623
+ multipleValues: true,
1624
+ },
1625
+ default: '',
1626
+ description: 'List of contact IDs to associate with the deal',
1627
+ routing: {
1628
+ send: {
1629
+ type: 'body',
1630
+ property: 'contact',
1631
+ },
1632
+ },
1633
+ },
1634
+ {
1635
+ displayName: 'Currency',
1636
+ name: 'currency',
1637
+ type: 'string',
1638
+ default: '',
1639
+ description: 'Currency code (e.g., USD, EUR, UAH)',
1640
+ placeholder: 'USD',
1641
+ routing: {
1642
+ send: {
1643
+ type: 'body',
1644
+ property: 'currency',
1645
+ },
1646
+ },
1647
+ },
1648
+ {
1649
+ displayName: 'Price',
1650
+ name: 'price',
1651
+ type: 'number',
1652
+ default: 0,
1653
+ description: 'Deal value/price',
1654
+ routing: {
1655
+ send: {
1656
+ type: 'body',
1657
+ property: 'price',
1658
+ },
1659
+ },
1660
+ },
1661
+ {
1662
+ displayName: 'Responsible ID',
1663
+ name: 'responsibleId',
1664
+ type: 'number',
1665
+ default: '',
1666
+ description: 'ID of the user responsible for the deal',
1667
+ routing: {
1668
+ send: {
1669
+ type: 'body',
1670
+ property: 'responsibleId',
1671
+ },
1672
+ },
1673
+ },
1674
+ {
1675
+ displayName: 'Source ID',
1676
+ name: 'sourceId',
1677
+ type: 'number',
1678
+ default: 0,
1679
+ description: 'ID of the deal source',
1680
+ routing: {
1681
+ send: {
1682
+ type: 'body',
1683
+ property: 'sourceId',
1684
+ },
1685
+ },
1686
+ },
1687
+ ],
1688
+ },
1689
+ {
1690
+ displayName: 'Additional Fields',
1691
+ name: 'additionalFields',
1692
+ type: 'collection',
1693
+ placeholder: 'Add Field',
1694
+ default: {},
1695
+ required: true,
1696
+ displayOptions: {
1697
+ show: {
1698
+ resource: ['pipeline'],
1699
+ operation: ['create'],
1700
+ },
1701
+ },
1702
+ options: [
1703
+ {
1704
+ displayName: 'Settings',
1705
+ name: 'settings',
1706
+ type: 'fixedCollection',
1707
+ options: [
1708
+ {
1709
+ displayName: 'Settings',
1710
+ name: 'settingsValues',
1711
+ values: [
1712
+ {
1713
+ displayName: 'Color',
1714
+ name: 'color',
1715
+ type: 'color',
1716
+ default: '#B1B1B1',
1717
+ },
1718
+ {
1719
+ displayName: 'Currency',
1720
+ name: 'currency',
1721
+ type: 'string',
1722
+ default: 'UAH',
1723
+ },
1724
+ {
1725
+ displayName: 'Responsible',
1726
+ name: 'responsible',
1727
+ type: 'number',
1728
+ default: '',
1729
+ },
1730
+ ],
1731
+ },
1732
+ ],
1733
+ default: {},
1734
+ description: 'Pipeline settings',
1735
+ routing: {
1736
+ send: {
1737
+ type: 'body',
1738
+ property: 'settings',
1739
+ value: '={{ Object.entries($value.settingsValues).map(([name, value]) => ({ name, value })) }}',
1740
+ },
1741
+ },
1742
+ },
1743
+ ],
1744
+ },
1745
+ ],
1746
+ };
1747
+ }
1748
+ }
1749
+ exports.SendPulseCrm = SendPulseCrm;
1750
+ //# sourceMappingURL=SendPulseCrm.node.js.map