@crowdin/n8n-nodes-crowdin 0.1.4 → 0.2.0

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 (44) hide show
  1. package/dist/nodes/Crowdin/CrowdinEnterpriseFileBasedTrigger.node.js +5 -167
  2. package/dist/nodes/Crowdin/CrowdinEnterpriseFileBasedTrigger.node.js.map +1 -1
  3. package/dist/nodes/Crowdin/CrowdinEnterpriseStringBasedTrigger.node.js +5 -132
  4. package/dist/nodes/Crowdin/CrowdinEnterpriseStringBasedTrigger.node.js.map +1 -1
  5. package/dist/nodes/Crowdin/CrowdinFileBasedTrigger.node.js +5 -157
  6. package/dist/nodes/Crowdin/CrowdinFileBasedTrigger.node.js.map +1 -1
  7. package/dist/nodes/Crowdin/CrowdinStringBasedTrigger.node.js +5 -122
  8. package/dist/nodes/Crowdin/CrowdinStringBasedTrigger.node.js.map +1 -1
  9. package/dist/nodes/Crowdin/methods/common/helpers.d.ts +1 -0
  10. package/dist/nodes/Crowdin/methods/common/helpers.js +5 -0
  11. package/dist/nodes/Crowdin/methods/common/helpers.js.map +1 -1
  12. package/dist/nodes/Crowdin/methods/common/index.js +41 -3
  13. package/dist/nodes/Crowdin/methods/common/index.js.map +1 -1
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +21 -14
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.d.ts +2 -0
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js +1688 -0
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js.map +1 -0
  19. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +94 -87
  20. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  21. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.d.ts +2 -0
  22. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js +1688 -0
  23. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js.map +1 -0
  24. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +4 -1
  25. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  26. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +4 -1
  27. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  28. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js +8 -0
  29. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js.map +1 -1
  30. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.d.ts +9 -0
  31. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js +158 -0
  32. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js.map +1 -0
  33. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.d.ts +9 -0
  34. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js +123 -0
  35. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js.map +1 -0
  36. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.d.ts +9 -0
  37. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js +166 -0
  38. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js.map +1 -0
  39. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.d.ts +9 -0
  40. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js +131 -0
  41. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js.map +1 -0
  42. package/dist/package.json +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +1 -1
@@ -0,0 +1,1688 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.integrationsProperties = void 0;
4
+ const preSend_1 = require("../../../utils/preSend");
5
+ exports.integrationsProperties = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: [
14
+ 'integrations'
15
+ ]
16
+ }
17
+ },
18
+ options: [
19
+ {
20
+ name: 'List Crowdin Files',
21
+ value: 'api.applications.integrations.crowdin.files',
22
+ action: 'List Crowdin Files',
23
+ routing: {
24
+ request: {
25
+ method: 'GET',
26
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/crowdin-files'
27
+ },
28
+ output: {
29
+ postReceive: [
30
+ {
31
+ type: 'rootProperty',
32
+ properties: {
33
+ property: 'data'
34
+ }
35
+ }
36
+ ]
37
+ }
38
+ }
39
+ },
40
+ {
41
+ name: 'Get File Progress',
42
+ value: 'api.applications.integrations.file.progress',
43
+ action: 'Get File Progress',
44
+ routing: {
45
+ request: {
46
+ method: 'GET',
47
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/file-progress'
48
+ }
49
+ }
50
+ },
51
+ {
52
+ name: 'List Integration Files',
53
+ value: 'api.applications.integrations.integration.files',
54
+ action: 'List Integration Files',
55
+ routing: {
56
+ request: {
57
+ method: 'GET',
58
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/integration-files'
59
+ },
60
+ output: {
61
+ postReceive: [
62
+ {
63
+ type: 'rootProperty',
64
+ properties: {
65
+ property: 'data'
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ },
72
+ {
73
+ name: 'Update Crowdin Files',
74
+ value: 'api.applications.integrations.crowdin.update',
75
+ action: 'Update Crowdin Files',
76
+ routing: {
77
+ request: {
78
+ method: 'POST',
79
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/crowdin-update'
80
+ }
81
+ }
82
+ },
83
+ {
84
+ name: 'Update Integration Files',
85
+ value: 'api.applications.integrations.integration.update',
86
+ action: 'Update Integration Files',
87
+ routing: {
88
+ request: {
89
+ method: 'POST',
90
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/integration-update'
91
+ }
92
+ }
93
+ },
94
+ {
95
+ name: 'List Jobs',
96
+ value: 'api.applications.integrations.job.list',
97
+ action: 'List Jobs',
98
+ routing: {
99
+ request: {
100
+ method: 'GET',
101
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/all-jobs'
102
+ },
103
+ send: {
104
+ paginate: '={{$parameter["returnAll"]}}'
105
+ },
106
+ output: {
107
+ postReceive: [
108
+ {
109
+ type: 'rootProperty',
110
+ enabled: '={{!$parameter["returnAll"]}}',
111
+ properties: {
112
+ property: 'data'
113
+ }
114
+ }
115
+ ]
116
+ }
117
+ }
118
+ },
119
+ {
120
+ name: 'Get Job Info',
121
+ value: 'api.applications.integrations.job.info',
122
+ action: 'Get Job Info',
123
+ routing: {
124
+ request: {
125
+ method: 'GET',
126
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/job-info'
127
+ }
128
+ }
129
+ },
130
+ {
131
+ name: 'Cancel Job',
132
+ value: 'api.applications.integrations.job.cancel',
133
+ action: 'Cancel Job',
134
+ routing: {
135
+ request: {
136
+ method: 'DELETE',
137
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/jobs'
138
+ },
139
+ output: {
140
+ postReceive: [
141
+ {
142
+ type: 'set',
143
+ properties: {
144
+ value: '={{ { "success": true } }}'
145
+ }
146
+ }
147
+ ]
148
+ }
149
+ }
150
+ },
151
+ {
152
+ name: 'Get Application Settings',
153
+ value: 'api.applications.integrations.settings.get',
154
+ action: 'Get Application Settings',
155
+ routing: {
156
+ request: {
157
+ method: 'GET',
158
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/settings'
159
+ }
160
+ }
161
+ },
162
+ {
163
+ name: 'Update Application Settings',
164
+ value: 'api.applications.integrations.settings.update',
165
+ action: 'Update Application Settings',
166
+ routing: {
167
+ request: {
168
+ method: 'POST',
169
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/settings'
170
+ }
171
+ }
172
+ },
173
+ {
174
+ name: 'Get Sync Settings',
175
+ value: 'api.applications.integrations.sync.settings.get',
176
+ action: 'Get Sync Settings',
177
+ routing: {
178
+ request: {
179
+ method: 'GET',
180
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/sync-settings'
181
+ }
182
+ }
183
+ },
184
+ {
185
+ name: 'Update Sync Settings',
186
+ value: 'api.applications.integrations.sync.settings.update',
187
+ action: 'Update Sync Settings',
188
+ routing: {
189
+ request: {
190
+ method: 'POST',
191
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/sync-settings'
192
+ }
193
+ }
194
+ },
195
+ {
196
+ name: 'Integration Login Form Fields',
197
+ value: 'api.applications.integrations.integration.fields',
198
+ action: 'Integration Login Form Fields',
199
+ routing: {
200
+ request: {
201
+ method: 'GET',
202
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/login-fields'
203
+ }
204
+ }
205
+ },
206
+ {
207
+ name: 'Integration Login',
208
+ value: 'api.applications.integrations.integration.login',
209
+ action: 'Integration Login',
210
+ routing: {
211
+ request: {
212
+ method: 'POST',
213
+ url: '=/applications/{{$parameter["applicationIdentifier"]}}/api/login'
214
+ }
215
+ }
216
+ }
217
+ ],
218
+ default: 'api.applications.integrations.crowdin.files'
219
+ },
220
+ {
221
+ displayName: 'GET /applications/{applicationIdentifier}/api/crowdin-files',
222
+ name: 'operation',
223
+ type: 'notice',
224
+ typeOptions: {
225
+ theme: 'info'
226
+ },
227
+ default: '',
228
+ displayOptions: {
229
+ show: {
230
+ resource: [
231
+ 'integrations'
232
+ ],
233
+ operation: [
234
+ 'api.applications.integrations.crowdin.files'
235
+ ]
236
+ }
237
+ }
238
+ },
239
+ {
240
+ displayName: 'GET /applications/{applicationIdentifier}/api/file-progress',
241
+ name: 'operation',
242
+ type: 'notice',
243
+ typeOptions: {
244
+ theme: 'info'
245
+ },
246
+ default: '',
247
+ displayOptions: {
248
+ show: {
249
+ resource: [
250
+ 'integrations'
251
+ ],
252
+ operation: [
253
+ 'api.applications.integrations.file.progress'
254
+ ]
255
+ }
256
+ }
257
+ },
258
+ {
259
+ displayName: 'GET /applications/{applicationIdentifier}/api/integration-files',
260
+ name: 'operation',
261
+ type: 'notice',
262
+ typeOptions: {
263
+ theme: 'info'
264
+ },
265
+ default: '',
266
+ displayOptions: {
267
+ show: {
268
+ resource: [
269
+ 'integrations'
270
+ ],
271
+ operation: [
272
+ 'api.applications.integrations.integration.files'
273
+ ]
274
+ }
275
+ }
276
+ },
277
+ {
278
+ displayName: 'POST /applications/{applicationIdentifier}/api/crowdin-update',
279
+ name: 'operation',
280
+ type: 'notice',
281
+ typeOptions: {
282
+ theme: 'info'
283
+ },
284
+ default: '',
285
+ displayOptions: {
286
+ show: {
287
+ resource: [
288
+ 'integrations'
289
+ ],
290
+ operation: [
291
+ 'api.applications.integrations.crowdin.update'
292
+ ]
293
+ }
294
+ }
295
+ },
296
+ {
297
+ displayName: 'POST /applications/{applicationIdentifier}/api/integration-update',
298
+ name: 'operation',
299
+ type: 'notice',
300
+ typeOptions: {
301
+ theme: 'info'
302
+ },
303
+ default: '',
304
+ displayOptions: {
305
+ show: {
306
+ resource: [
307
+ 'integrations'
308
+ ],
309
+ operation: [
310
+ 'api.applications.integrations.integration.update'
311
+ ]
312
+ }
313
+ }
314
+ },
315
+ {
316
+ displayName: 'GET /applications/{applicationIdentifier}/api/all-jobs',
317
+ name: 'operation',
318
+ type: 'notice',
319
+ typeOptions: {
320
+ theme: 'info'
321
+ },
322
+ default: '',
323
+ displayOptions: {
324
+ show: {
325
+ resource: [
326
+ 'integrations'
327
+ ],
328
+ operation: [
329
+ 'api.applications.integrations.job.list'
330
+ ]
331
+ }
332
+ }
333
+ },
334
+ {
335
+ displayName: 'GET /applications/{applicationIdentifier}/api/job-info',
336
+ name: 'operation',
337
+ type: 'notice',
338
+ typeOptions: {
339
+ theme: 'info'
340
+ },
341
+ default: '',
342
+ displayOptions: {
343
+ show: {
344
+ resource: [
345
+ 'integrations'
346
+ ],
347
+ operation: [
348
+ 'api.applications.integrations.job.info'
349
+ ]
350
+ }
351
+ }
352
+ },
353
+ {
354
+ displayName: 'DELETE /applications/{applicationIdentifier}/api/jobs',
355
+ name: 'operation',
356
+ type: 'notice',
357
+ typeOptions: {
358
+ theme: 'info'
359
+ },
360
+ default: '',
361
+ displayOptions: {
362
+ show: {
363
+ resource: [
364
+ 'integrations'
365
+ ],
366
+ operation: [
367
+ 'api.applications.integrations.job.cancel'
368
+ ]
369
+ }
370
+ }
371
+ },
372
+ {
373
+ displayName: 'GET /applications/{applicationIdentifier}/api/settings',
374
+ name: 'operation',
375
+ type: 'notice',
376
+ typeOptions: {
377
+ theme: 'info'
378
+ },
379
+ default: '',
380
+ displayOptions: {
381
+ show: {
382
+ resource: [
383
+ 'integrations'
384
+ ],
385
+ operation: [
386
+ 'api.applications.integrations.settings.get'
387
+ ]
388
+ }
389
+ }
390
+ },
391
+ {
392
+ displayName: 'POST /applications/{applicationIdentifier}/api/settings',
393
+ name: 'operation',
394
+ type: 'notice',
395
+ typeOptions: {
396
+ theme: 'info'
397
+ },
398
+ default: '',
399
+ displayOptions: {
400
+ show: {
401
+ resource: [
402
+ 'integrations'
403
+ ],
404
+ operation: [
405
+ 'api.applications.integrations.settings.update'
406
+ ]
407
+ }
408
+ }
409
+ },
410
+ {
411
+ displayName: 'GET /applications/{applicationIdentifier}/api/sync-settings',
412
+ name: 'operation',
413
+ type: 'notice',
414
+ typeOptions: {
415
+ theme: 'info'
416
+ },
417
+ default: '',
418
+ displayOptions: {
419
+ show: {
420
+ resource: [
421
+ 'integrations'
422
+ ],
423
+ operation: [
424
+ 'api.applications.integrations.sync.settings.get'
425
+ ]
426
+ }
427
+ }
428
+ },
429
+ {
430
+ displayName: 'POST /applications/{applicationIdentifier}/api/sync-settings',
431
+ name: 'operation',
432
+ type: 'notice',
433
+ typeOptions: {
434
+ theme: 'info'
435
+ },
436
+ default: '',
437
+ displayOptions: {
438
+ show: {
439
+ resource: [
440
+ 'integrations'
441
+ ],
442
+ operation: [
443
+ 'api.applications.integrations.sync.settings.update'
444
+ ]
445
+ }
446
+ }
447
+ },
448
+ {
449
+ displayName: 'GET /applications/{applicationIdentifier}/api/login-fields',
450
+ name: 'operation',
451
+ type: 'notice',
452
+ typeOptions: {
453
+ theme: 'info'
454
+ },
455
+ default: '',
456
+ displayOptions: {
457
+ show: {
458
+ resource: [
459
+ 'integrations'
460
+ ],
461
+ operation: [
462
+ 'api.applications.integrations.integration.fields'
463
+ ]
464
+ }
465
+ }
466
+ },
467
+ {
468
+ displayName: 'POST /applications/{applicationIdentifier}/api/login',
469
+ name: 'operation',
470
+ type: 'notice',
471
+ typeOptions: {
472
+ theme: 'info'
473
+ },
474
+ default: '',
475
+ displayOptions: {
476
+ show: {
477
+ resource: [
478
+ 'integrations'
479
+ ],
480
+ operation: [
481
+ 'api.applications.integrations.integration.login'
482
+ ]
483
+ }
484
+ }
485
+ },
486
+ {
487
+ displayName: 'Application Identifier',
488
+ name: 'applicationIdentifier',
489
+ required: true,
490
+ description: 'Identifier of the application.',
491
+ default: '',
492
+ type: 'options',
493
+ displayOptions: {
494
+ show: {
495
+ resource: [
496
+ 'integrations'
497
+ ],
498
+ operation: [
499
+ 'api.applications.integrations.crowdin.files'
500
+ ]
501
+ }
502
+ },
503
+ typeOptions: {
504
+ loadOptionsMethod: 'getApplicationInstallations'
505
+ }
506
+ },
507
+ {
508
+ displayName: 'Project Id',
509
+ name: 'projectId',
510
+ required: true,
511
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
512
+ default: '',
513
+ type: 'options',
514
+ routing: {
515
+ send: {
516
+ type: 'query',
517
+ property: 'projectId',
518
+ value: '={{ $value }}',
519
+ propertyInDotNotation: false
520
+ }
521
+ },
522
+ displayOptions: {
523
+ show: {
524
+ resource: [
525
+ 'integrations'
526
+ ],
527
+ operation: [
528
+ 'api.applications.integrations.crowdin.files'
529
+ ]
530
+ }
531
+ },
532
+ typeOptions: {
533
+ loadOptionsMethod: 'getProjects'
534
+ }
535
+ },
536
+ {
537
+ displayName: 'Application Identifier',
538
+ name: 'applicationIdentifier',
539
+ required: true,
540
+ description: 'Identifier of the application.',
541
+ default: '',
542
+ type: 'options',
543
+ displayOptions: {
544
+ show: {
545
+ resource: [
546
+ 'integrations'
547
+ ],
548
+ operation: [
549
+ 'api.applications.integrations.file.progress'
550
+ ]
551
+ }
552
+ },
553
+ typeOptions: {
554
+ loadOptionsMethod: 'getApplicationInstallations'
555
+ }
556
+ },
557
+ {
558
+ displayName: 'Project Id',
559
+ name: 'projectId',
560
+ required: true,
561
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
562
+ default: '',
563
+ type: 'options',
564
+ routing: {
565
+ send: {
566
+ type: 'query',
567
+ property: 'projectId',
568
+ value: '={{ $value }}',
569
+ propertyInDotNotation: false
570
+ }
571
+ },
572
+ displayOptions: {
573
+ show: {
574
+ resource: [
575
+ 'integrations'
576
+ ],
577
+ operation: [
578
+ 'api.applications.integrations.file.progress'
579
+ ]
580
+ }
581
+ },
582
+ typeOptions: {
583
+ loadOptionsMethod: 'getProjects'
584
+ }
585
+ },
586
+ {
587
+ displayName: 'File Id',
588
+ name: 'fileId',
589
+ required: true,
590
+ description: 'Get via [List Crowdin Files](#operation/api.applications.integrations.crowdin.files)',
591
+ default: '',
592
+ type: 'options',
593
+ routing: {
594
+ send: {
595
+ type: 'query',
596
+ property: 'fileId',
597
+ value: '={{ $value }}',
598
+ propertyInDotNotation: false
599
+ }
600
+ },
601
+ displayOptions: {
602
+ show: {
603
+ resource: [
604
+ 'integrations'
605
+ ],
606
+ operation: [
607
+ 'api.applications.integrations.file.progress'
608
+ ]
609
+ }
610
+ },
611
+ typeOptions: {
612
+ loadOptionsMethod: 'getIntegrationCrowdinFiles',
613
+ loadOptionsDependsOn: [
614
+ 'applicationIdentifier',
615
+ 'projectId'
616
+ ]
617
+ }
618
+ },
619
+ {
620
+ displayName: 'Application Identifier',
621
+ name: 'applicationIdentifier',
622
+ required: true,
623
+ description: 'Identifier of the application.',
624
+ default: '',
625
+ type: 'options',
626
+ displayOptions: {
627
+ show: {
628
+ resource: [
629
+ 'integrations'
630
+ ],
631
+ operation: [
632
+ 'api.applications.integrations.integration.files'
633
+ ]
634
+ }
635
+ },
636
+ typeOptions: {
637
+ loadOptionsMethod: 'getApplicationInstallations'
638
+ }
639
+ },
640
+ {
641
+ displayName: 'Project Id',
642
+ name: 'projectId',
643
+ required: true,
644
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
645
+ default: '',
646
+ type: 'options',
647
+ routing: {
648
+ send: {
649
+ type: 'query',
650
+ property: 'projectId',
651
+ value: '={{ $value }}',
652
+ propertyInDotNotation: false
653
+ }
654
+ },
655
+ displayOptions: {
656
+ show: {
657
+ resource: [
658
+ 'integrations'
659
+ ],
660
+ operation: [
661
+ 'api.applications.integrations.integration.files'
662
+ ]
663
+ }
664
+ },
665
+ typeOptions: {
666
+ loadOptionsMethod: 'getProjects'
667
+ }
668
+ },
669
+ {
670
+ displayName: 'Application Identifier',
671
+ name: 'applicationIdentifier',
672
+ required: true,
673
+ description: 'Identifier of the application.',
674
+ default: '',
675
+ type: 'options',
676
+ displayOptions: {
677
+ show: {
678
+ resource: [
679
+ 'integrations'
680
+ ],
681
+ operation: [
682
+ 'api.applications.integrations.crowdin.update'
683
+ ]
684
+ }
685
+ },
686
+ typeOptions: {
687
+ loadOptionsMethod: 'getApplicationInstallations'
688
+ }
689
+ },
690
+ {
691
+ displayName: 'Project Id',
692
+ required: true,
693
+ name: 'projectId',
694
+ type: 'options',
695
+ default: '',
696
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
697
+ routing: {
698
+ send: {
699
+ property: 'projectId',
700
+ propertyInDotNotation: false,
701
+ type: 'body',
702
+ value: '={{ $value }}'
703
+ }
704
+ },
705
+ displayOptions: {
706
+ show: {
707
+ resource: [
708
+ 'integrations'
709
+ ],
710
+ operation: [
711
+ 'api.applications.integrations.crowdin.update'
712
+ ]
713
+ }
714
+ },
715
+ typeOptions: {
716
+ loadOptionsMethod: 'getProjects'
717
+ }
718
+ },
719
+ {
720
+ displayName: 'Files',
721
+ required: true,
722
+ name: 'flatten:files',
723
+ type: 'fixedCollection',
724
+ default: {},
725
+ description: 'Add Files',
726
+ routing: {
727
+ send: {
728
+ property: 'flatten:files',
729
+ propertyInDotNotation: false,
730
+ type: 'body',
731
+ value: '={{ $value }}',
732
+ preSend: [
733
+ preSend_1.normalizeFieldBody
734
+ ]
735
+ }
736
+ },
737
+ displayOptions: {
738
+ show: {
739
+ resource: [
740
+ 'integrations'
741
+ ],
742
+ operation: [
743
+ 'api.applications.integrations.crowdin.update'
744
+ ]
745
+ }
746
+ },
747
+ typeOptions: {
748
+ multipleValues: true
749
+ },
750
+ placeholder: 'Add Item',
751
+ options: [
752
+ {
753
+ displayName: 'Variant 1',
754
+ name: 'variant1',
755
+ values: [
756
+ {
757
+ displayName: 'Id',
758
+ name: 'id',
759
+ type: 'string',
760
+ default: '',
761
+ description: undefined
762
+ },
763
+ {
764
+ displayName: 'Name',
765
+ name: 'name',
766
+ type: 'string',
767
+ default: '',
768
+ description: undefined
769
+ },
770
+ {
771
+ displayName: 'Parent Id',
772
+ name: 'parent_id',
773
+ type: 'string',
774
+ default: '',
775
+ description: undefined
776
+ },
777
+ {
778
+ displayName: 'Node Type',
779
+ name: 'node_type',
780
+ type: 'string',
781
+ default: '',
782
+ description: undefined
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ displayName: 'Variant 2',
788
+ name: 'variant2',
789
+ values: [
790
+ {
791
+ displayName: 'Name',
792
+ name: 'name',
793
+ type: 'string',
794
+ default: '',
795
+ description: undefined
796
+ },
797
+ {
798
+ displayName: 'Id',
799
+ name: 'id',
800
+ type: 'string',
801
+ default: '',
802
+ description: undefined
803
+ },
804
+ {
805
+ displayName: 'Parent Id',
806
+ name: 'parentId',
807
+ type: 'string',
808
+ default: '',
809
+ description: undefined
810
+ },
811
+ {
812
+ displayName: 'Type',
813
+ name: 'type',
814
+ type: 'string',
815
+ default: '',
816
+ description: undefined
817
+ },
818
+ {
819
+ displayName: 'Node Type',
820
+ name: 'node_type',
821
+ type: 'string',
822
+ default: '',
823
+ description: undefined
824
+ }
825
+ ]
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ displayName: 'Upload Translations',
831
+ name: 'uploadTranslations',
832
+ type: 'boolean',
833
+ default: false,
834
+ description: 'Upload exist translation from integration',
835
+ routing: {
836
+ send: {
837
+ property: 'uploadTranslations',
838
+ propertyInDotNotation: false,
839
+ type: 'body',
840
+ value: '={{ $value }}'
841
+ }
842
+ },
843
+ displayOptions: {
844
+ show: {
845
+ resource: [
846
+ 'integrations'
847
+ ],
848
+ operation: [
849
+ 'api.applications.integrations.crowdin.update'
850
+ ]
851
+ }
852
+ }
853
+ },
854
+ {
855
+ displayName: 'Application Identifier',
856
+ name: 'applicationIdentifier',
857
+ required: true,
858
+ description: 'Identifier of the application.',
859
+ default: '',
860
+ type: 'options',
861
+ displayOptions: {
862
+ show: {
863
+ resource: [
864
+ 'integrations'
865
+ ],
866
+ operation: [
867
+ 'api.applications.integrations.integration.update'
868
+ ]
869
+ }
870
+ },
871
+ typeOptions: {
872
+ loadOptionsMethod: 'getApplicationInstallations'
873
+ }
874
+ },
875
+ {
876
+ displayName: 'Project Id',
877
+ required: true,
878
+ name: 'projectId',
879
+ type: 'options',
880
+ default: '',
881
+ description: 'Project Id. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
882
+ routing: {
883
+ send: {
884
+ property: 'projectId',
885
+ propertyInDotNotation: false,
886
+ type: 'body',
887
+ value: '={{ $value }}'
888
+ }
889
+ },
890
+ displayOptions: {
891
+ show: {
892
+ resource: [
893
+ 'integrations'
894
+ ],
895
+ operation: [
896
+ 'api.applications.integrations.integration.update'
897
+ ]
898
+ }
899
+ },
900
+ typeOptions: {
901
+ loadOptionsMethod: 'getProjects'
902
+ }
903
+ },
904
+ {
905
+ displayName: 'Files',
906
+ required: true,
907
+ name: 'files',
908
+ type: 'json',
909
+ default: '{\n "102": [\n "de",\n "fr"\n ],\n "999": [\n "uk"\n ]\n}',
910
+ description: '- **{fileId}** _(integer)_: Crowdin File Id. Get via [List Crowdin Files](#operation/api.applications.integrations.crowdin.files)\n- **[{languageCode}]** _(array of strings)_: List Of Language Id. Get via [List Supported Languages](https://support.crowdin.com/developer/api/v2/#tag/Languages/operation/api.languages.getMany)\n\n**Example:**\n ```json\n {\n 102: ["de", "fr"],\n 999: ["uk"]\n }\n ```\n',
911
+ routing: {
912
+ send: {
913
+ property: 'files',
914
+ propertyInDotNotation: false,
915
+ type: 'body',
916
+ value: '={{ JSON.parse($value) }}'
917
+ }
918
+ },
919
+ displayOptions: {
920
+ show: {
921
+ resource: [
922
+ 'integrations'
923
+ ],
924
+ operation: [
925
+ 'api.applications.integrations.integration.update'
926
+ ]
927
+ }
928
+ }
929
+ },
930
+ {
931
+ displayName: 'Application Identifier',
932
+ name: 'applicationIdentifier',
933
+ required: true,
934
+ description: 'Identifier of the application.',
935
+ default: '',
936
+ type: 'options',
937
+ displayOptions: {
938
+ show: {
939
+ resource: [
940
+ 'integrations'
941
+ ],
942
+ operation: [
943
+ 'api.applications.integrations.job.list'
944
+ ]
945
+ }
946
+ },
947
+ typeOptions: {
948
+ loadOptionsMethod: 'getApplicationInstallations'
949
+ }
950
+ },
951
+ {
952
+ displayName: 'Project Id',
953
+ name: 'projectId',
954
+ required: true,
955
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
956
+ default: '',
957
+ type: 'options',
958
+ routing: {
959
+ send: {
960
+ type: 'query',
961
+ property: 'projectId',
962
+ value: '={{ $value }}',
963
+ propertyInDotNotation: false
964
+ }
965
+ },
966
+ displayOptions: {
967
+ show: {
968
+ resource: [
969
+ 'integrations'
970
+ ],
971
+ operation: [
972
+ 'api.applications.integrations.job.list'
973
+ ]
974
+ }
975
+ },
976
+ typeOptions: {
977
+ loadOptionsMethod: 'getProjects'
978
+ }
979
+ },
980
+ {
981
+ displayName: 'Limit',
982
+ name: 'limit',
983
+ description: 'Max number of results to return',
984
+ default: 50,
985
+ type: 'number',
986
+ routing: {
987
+ send: {
988
+ type: 'query',
989
+ property: 'limit',
990
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
991
+ propertyInDotNotation: false
992
+ }
993
+ },
994
+ displayOptions: {
995
+ show: {
996
+ resource: [
997
+ 'integrations'
998
+ ],
999
+ operation: [
1000
+ 'api.applications.integrations.job.list'
1001
+ ],
1002
+ returnAll: [
1003
+ false
1004
+ ]
1005
+ }
1006
+ },
1007
+ typeOptions: {
1008
+ minValue: 1
1009
+ }
1010
+ },
1011
+ {
1012
+ displayName: 'Application Identifier',
1013
+ name: 'applicationIdentifier',
1014
+ required: true,
1015
+ description: 'Identifier of the application.',
1016
+ default: '',
1017
+ type: 'options',
1018
+ displayOptions: {
1019
+ show: {
1020
+ resource: [
1021
+ 'integrations'
1022
+ ],
1023
+ operation: [
1024
+ 'api.applications.integrations.job.info'
1025
+ ]
1026
+ }
1027
+ },
1028
+ typeOptions: {
1029
+ loadOptionsMethod: 'getApplicationInstallations'
1030
+ }
1031
+ },
1032
+ {
1033
+ displayName: 'Project Id',
1034
+ name: 'projectId',
1035
+ required: true,
1036
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1037
+ default: '',
1038
+ type: 'options',
1039
+ routing: {
1040
+ send: {
1041
+ type: 'query',
1042
+ property: 'projectId',
1043
+ value: '={{ $value }}',
1044
+ propertyInDotNotation: false
1045
+ }
1046
+ },
1047
+ displayOptions: {
1048
+ show: {
1049
+ resource: [
1050
+ 'integrations'
1051
+ ],
1052
+ operation: [
1053
+ 'api.applications.integrations.job.info'
1054
+ ]
1055
+ }
1056
+ },
1057
+ typeOptions: {
1058
+ loadOptionsMethod: 'getProjects'
1059
+ }
1060
+ },
1061
+ {
1062
+ displayName: 'Job Id',
1063
+ name: 'jobId',
1064
+ required: true,
1065
+ description: undefined,
1066
+ default: '',
1067
+ type: 'string',
1068
+ routing: {
1069
+ send: {
1070
+ type: 'query',
1071
+ property: 'jobId',
1072
+ value: '={{ $value || undefined }}',
1073
+ propertyInDotNotation: false
1074
+ }
1075
+ },
1076
+ displayOptions: {
1077
+ show: {
1078
+ resource: [
1079
+ 'integrations'
1080
+ ],
1081
+ operation: [
1082
+ 'api.applications.integrations.job.info'
1083
+ ]
1084
+ }
1085
+ },
1086
+ placeholder: '067da473-fc0b-43e3-b0a2-09d26af130c1'
1087
+ },
1088
+ {
1089
+ displayName: 'Application Identifier',
1090
+ name: 'applicationIdentifier',
1091
+ required: true,
1092
+ description: 'Identifier of the application.',
1093
+ default: '',
1094
+ type: 'options',
1095
+ displayOptions: {
1096
+ show: {
1097
+ resource: [
1098
+ 'integrations'
1099
+ ],
1100
+ operation: [
1101
+ 'api.applications.integrations.job.cancel'
1102
+ ]
1103
+ }
1104
+ },
1105
+ typeOptions: {
1106
+ loadOptionsMethod: 'getApplicationInstallations'
1107
+ }
1108
+ },
1109
+ {
1110
+ displayName: 'Project Id',
1111
+ name: 'projectId',
1112
+ required: true,
1113
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1114
+ default: '',
1115
+ type: 'options',
1116
+ routing: {
1117
+ send: {
1118
+ type: 'query',
1119
+ property: 'projectId',
1120
+ value: '={{ $value }}',
1121
+ propertyInDotNotation: false
1122
+ }
1123
+ },
1124
+ displayOptions: {
1125
+ show: {
1126
+ resource: [
1127
+ 'integrations'
1128
+ ],
1129
+ operation: [
1130
+ 'api.applications.integrations.job.cancel'
1131
+ ]
1132
+ }
1133
+ },
1134
+ typeOptions: {
1135
+ loadOptionsMethod: 'getProjects'
1136
+ }
1137
+ },
1138
+ {
1139
+ displayName: 'Job Id',
1140
+ name: 'jobId',
1141
+ required: true,
1142
+ description: undefined,
1143
+ default: '',
1144
+ type: 'string',
1145
+ routing: {
1146
+ send: {
1147
+ type: 'query',
1148
+ property: 'jobId',
1149
+ value: '={{ $value || undefined }}',
1150
+ propertyInDotNotation: false
1151
+ }
1152
+ },
1153
+ displayOptions: {
1154
+ show: {
1155
+ resource: [
1156
+ 'integrations'
1157
+ ],
1158
+ operation: [
1159
+ 'api.applications.integrations.job.cancel'
1160
+ ]
1161
+ }
1162
+ },
1163
+ placeholder: '067da473-fc0b-43e3-b0a2-09d26af130c1'
1164
+ },
1165
+ {
1166
+ displayName: 'Application Identifier',
1167
+ name: 'applicationIdentifier',
1168
+ required: true,
1169
+ description: 'Identifier of the application.',
1170
+ default: '',
1171
+ type: 'options',
1172
+ displayOptions: {
1173
+ show: {
1174
+ resource: [
1175
+ 'integrations'
1176
+ ],
1177
+ operation: [
1178
+ 'api.applications.integrations.settings.get'
1179
+ ]
1180
+ }
1181
+ },
1182
+ typeOptions: {
1183
+ loadOptionsMethod: 'getApplicationInstallations'
1184
+ }
1185
+ },
1186
+ {
1187
+ displayName: 'Project Id',
1188
+ name: 'projectId',
1189
+ required: true,
1190
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1191
+ default: '',
1192
+ type: 'options',
1193
+ routing: {
1194
+ send: {
1195
+ type: 'query',
1196
+ property: 'projectId',
1197
+ value: '={{ $value }}',
1198
+ propertyInDotNotation: false
1199
+ }
1200
+ },
1201
+ displayOptions: {
1202
+ show: {
1203
+ resource: [
1204
+ 'integrations'
1205
+ ],
1206
+ operation: [
1207
+ 'api.applications.integrations.settings.get'
1208
+ ]
1209
+ }
1210
+ },
1211
+ typeOptions: {
1212
+ loadOptionsMethod: 'getProjects'
1213
+ }
1214
+ },
1215
+ {
1216
+ displayName: 'Application Identifier',
1217
+ name: 'applicationIdentifier',
1218
+ required: true,
1219
+ description: 'Identifier of the application.',
1220
+ default: '',
1221
+ type: 'options',
1222
+ displayOptions: {
1223
+ show: {
1224
+ resource: [
1225
+ 'integrations'
1226
+ ],
1227
+ operation: [
1228
+ 'api.applications.integrations.settings.update'
1229
+ ]
1230
+ }
1231
+ },
1232
+ typeOptions: {
1233
+ loadOptionsMethod: 'getApplicationInstallations'
1234
+ }
1235
+ },
1236
+ {
1237
+ displayName: 'Project Id',
1238
+ required: true,
1239
+ name: 'projectId',
1240
+ type: 'options',
1241
+ default: '',
1242
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1243
+ routing: {
1244
+ send: {
1245
+ property: 'projectId',
1246
+ propertyInDotNotation: false,
1247
+ type: 'body',
1248
+ value: '={{ $value }}'
1249
+ }
1250
+ },
1251
+ displayOptions: {
1252
+ show: {
1253
+ resource: [
1254
+ 'integrations'
1255
+ ],
1256
+ operation: [
1257
+ 'api.applications.integrations.settings.update'
1258
+ ]
1259
+ }
1260
+ },
1261
+ typeOptions: {
1262
+ loadOptionsMethod: 'getProjects'
1263
+ }
1264
+ },
1265
+ {
1266
+ displayName: 'Config',
1267
+ required: true,
1268
+ name: 'config',
1269
+ type: 'json',
1270
+ default: '{\n "schedule": 0,\n "condition": 0\n}',
1271
+ description: undefined,
1272
+ routing: {
1273
+ send: {
1274
+ property: 'config',
1275
+ propertyInDotNotation: false,
1276
+ type: 'body',
1277
+ value: '={{ JSON.parse($value) }}'
1278
+ }
1279
+ },
1280
+ displayOptions: {
1281
+ show: {
1282
+ resource: [
1283
+ 'integrations'
1284
+ ],
1285
+ operation: [
1286
+ 'api.applications.integrations.settings.update'
1287
+ ]
1288
+ }
1289
+ }
1290
+ },
1291
+ {
1292
+ displayName: 'Application Identifier',
1293
+ name: 'applicationIdentifier',
1294
+ required: true,
1295
+ description: 'Identifier of the application.',
1296
+ default: '',
1297
+ type: 'options',
1298
+ displayOptions: {
1299
+ show: {
1300
+ resource: [
1301
+ 'integrations'
1302
+ ],
1303
+ operation: [
1304
+ 'api.applications.integrations.sync.settings.get'
1305
+ ]
1306
+ }
1307
+ },
1308
+ typeOptions: {
1309
+ loadOptionsMethod: 'getApplicationInstallations'
1310
+ }
1311
+ },
1312
+ {
1313
+ displayName: 'Project Id',
1314
+ name: 'projectId',
1315
+ required: true,
1316
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1317
+ default: '',
1318
+ type: 'options',
1319
+ routing: {
1320
+ send: {
1321
+ type: 'query',
1322
+ property: 'projectId',
1323
+ value: '={{ $value }}',
1324
+ propertyInDotNotation: false
1325
+ }
1326
+ },
1327
+ displayOptions: {
1328
+ show: {
1329
+ resource: [
1330
+ 'integrations'
1331
+ ],
1332
+ operation: [
1333
+ 'api.applications.integrations.sync.settings.get'
1334
+ ]
1335
+ }
1336
+ },
1337
+ typeOptions: {
1338
+ loadOptionsMethod: 'getProjects'
1339
+ }
1340
+ },
1341
+ {
1342
+ displayName: 'Provider',
1343
+ name: 'provider',
1344
+ required: true,
1345
+ description: undefined,
1346
+ default: 'crowdin',
1347
+ type: 'options',
1348
+ options: [
1349
+ {
1350
+ name: 'crowdin',
1351
+ value: 'crowdin'
1352
+ },
1353
+ {
1354
+ name: 'integration',
1355
+ value: 'integration'
1356
+ }
1357
+ ],
1358
+ routing: {
1359
+ send: {
1360
+ type: 'query',
1361
+ property: 'provider',
1362
+ value: '={{ $value }}',
1363
+ propertyInDotNotation: false
1364
+ }
1365
+ },
1366
+ displayOptions: {
1367
+ show: {
1368
+ resource: [
1369
+ 'integrations'
1370
+ ],
1371
+ operation: [
1372
+ 'api.applications.integrations.sync.settings.get'
1373
+ ]
1374
+ }
1375
+ }
1376
+ },
1377
+ {
1378
+ displayName: 'Application Identifier',
1379
+ name: 'applicationIdentifier',
1380
+ required: true,
1381
+ description: 'Identifier of the application.',
1382
+ default: '',
1383
+ type: 'options',
1384
+ displayOptions: {
1385
+ show: {
1386
+ resource: [
1387
+ 'integrations'
1388
+ ],
1389
+ operation: [
1390
+ 'api.applications.integrations.sync.settings.update'
1391
+ ]
1392
+ }
1393
+ },
1394
+ typeOptions: {
1395
+ loadOptionsMethod: 'getApplicationInstallations'
1396
+ }
1397
+ },
1398
+ {
1399
+ displayName: 'Project Id',
1400
+ required: true,
1401
+ name: 'projectId',
1402
+ type: 'options',
1403
+ default: '',
1404
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1405
+ routing: {
1406
+ send: {
1407
+ property: 'projectId',
1408
+ propertyInDotNotation: false,
1409
+ type: 'body',
1410
+ value: '={{ $value }}'
1411
+ }
1412
+ },
1413
+ displayOptions: {
1414
+ show: {
1415
+ resource: [
1416
+ 'integrations'
1417
+ ],
1418
+ operation: [
1419
+ 'api.applications.integrations.sync.settings.update'
1420
+ ]
1421
+ }
1422
+ },
1423
+ typeOptions: {
1424
+ loadOptionsMethod: 'getProjects'
1425
+ }
1426
+ },
1427
+ {
1428
+ displayName: 'Provider',
1429
+ required: true,
1430
+ name: 'provider',
1431
+ type: 'options',
1432
+ default: 'crowdin',
1433
+ description: undefined,
1434
+ options: [
1435
+ {
1436
+ name: 'crowdin',
1437
+ value: 'crowdin'
1438
+ },
1439
+ {
1440
+ name: 'integration',
1441
+ value: 'integration'
1442
+ }
1443
+ ],
1444
+ routing: {
1445
+ send: {
1446
+ property: 'provider',
1447
+ propertyInDotNotation: false,
1448
+ type: 'body',
1449
+ value: '={{ $value }}'
1450
+ }
1451
+ },
1452
+ displayOptions: {
1453
+ show: {
1454
+ resource: [
1455
+ 'integrations'
1456
+ ],
1457
+ operation: [
1458
+ 'api.applications.integrations.sync.settings.update'
1459
+ ]
1460
+ }
1461
+ }
1462
+ },
1463
+ {
1464
+ displayName: 'Files',
1465
+ name: 'files',
1466
+ required: true,
1467
+ description: 'Select configuration type',
1468
+ default: {},
1469
+ type: 'fixedCollection',
1470
+ displayOptions: {
1471
+ show: {
1472
+ resource: [
1473
+ 'integrations'
1474
+ ],
1475
+ operation: [
1476
+ 'api.applications.integrations.sync.settings.update'
1477
+ ]
1478
+ }
1479
+ },
1480
+ options: [
1481
+ {
1482
+ displayName: 'Integration Crowdin Sync Settings Response',
1483
+ name: '_integrationCrowdinSyncSettingsResponse',
1484
+ values: [
1485
+ {
1486
+ displayName: 'JSON Data',
1487
+ name: 'json:json',
1488
+ type: 'json',
1489
+ default: '{}',
1490
+ description: 'Enter data as JSON'
1491
+ }
1492
+ ]
1493
+ },
1494
+ {
1495
+ displayName: 'Integration Integration Sync Settings Response',
1496
+ name: '_integrationIntegrationSyncSettingsResponse',
1497
+ values: [
1498
+ {
1499
+ displayName: 'Items',
1500
+ name: '_items',
1501
+ type: 'fixedCollection',
1502
+ typeOptions: {
1503
+ multipleValues: true
1504
+ },
1505
+ default: {},
1506
+ placeholder: 'Add Item',
1507
+ options: [
1508
+ {
1509
+ displayName: 'Item',
1510
+ name: 'items',
1511
+ values: [
1512
+ {
1513
+ displayName: 'Name',
1514
+ name: 'name',
1515
+ type: 'string',
1516
+ default: '',
1517
+ description: undefined
1518
+ },
1519
+ {
1520
+ displayName: 'Id',
1521
+ name: 'id',
1522
+ type: 'string',
1523
+ default: '',
1524
+ description: undefined
1525
+ },
1526
+ {
1527
+ displayName: 'Parent Id',
1528
+ name: 'parentId',
1529
+ type: 'string',
1530
+ default: '',
1531
+ description: undefined
1532
+ },
1533
+ {
1534
+ displayName: 'Type',
1535
+ name: 'type',
1536
+ type: 'string',
1537
+ default: '',
1538
+ description: undefined
1539
+ },
1540
+ {
1541
+ displayName: 'Node Type',
1542
+ name: 'node_type',
1543
+ type: 'string',
1544
+ default: '',
1545
+ description: undefined
1546
+ },
1547
+ {
1548
+ displayName: 'Schedule',
1549
+ name: 'schedule',
1550
+ type: 'boolean',
1551
+ default: false,
1552
+ description: undefined
1553
+ }
1554
+ ]
1555
+ }
1556
+ ]
1557
+ }
1558
+ ]
1559
+ }
1560
+ ],
1561
+ routing: {
1562
+ send: {
1563
+ preSend: [
1564
+ preSend_1.normalizeFieldBody
1565
+ ],
1566
+ property: 'files',
1567
+ propertyInDotNotation: false,
1568
+ type: 'body',
1569
+ value: '={{ $value }}'
1570
+ }
1571
+ }
1572
+ },
1573
+ {
1574
+ displayName: 'Application Identifier',
1575
+ name: 'applicationIdentifier',
1576
+ required: true,
1577
+ description: 'Identifier of the application.',
1578
+ default: '',
1579
+ type: 'options',
1580
+ displayOptions: {
1581
+ show: {
1582
+ resource: [
1583
+ 'integrations'
1584
+ ],
1585
+ operation: [
1586
+ 'api.applications.integrations.integration.fields'
1587
+ ]
1588
+ }
1589
+ },
1590
+ typeOptions: {
1591
+ loadOptionsMethod: 'getApplicationInstallations'
1592
+ }
1593
+ },
1594
+ {
1595
+ displayName: 'Application Identifier',
1596
+ name: 'applicationIdentifier',
1597
+ required: true,
1598
+ description: 'Identifier of the application.',
1599
+ default: '',
1600
+ type: 'options',
1601
+ displayOptions: {
1602
+ show: {
1603
+ resource: [
1604
+ 'integrations'
1605
+ ],
1606
+ operation: [
1607
+ 'api.applications.integrations.integration.login'
1608
+ ]
1609
+ }
1610
+ },
1611
+ typeOptions: {
1612
+ loadOptionsMethod: 'getApplicationInstallations'
1613
+ }
1614
+ },
1615
+ {
1616
+ displayName: 'Project Id',
1617
+ required: true,
1618
+ name: 'projectId',
1619
+ type: 'options',
1620
+ default: '',
1621
+ description: 'Project Identifier. Get via [List Projects](https://developer.crowdin.com/api/v2/#operation/api.projects.getMany)',
1622
+ routing: {
1623
+ send: {
1624
+ property: 'projectId',
1625
+ propertyInDotNotation: false,
1626
+ type: 'body',
1627
+ value: '={{ $value }}'
1628
+ }
1629
+ },
1630
+ displayOptions: {
1631
+ show: {
1632
+ resource: [
1633
+ 'integrations'
1634
+ ],
1635
+ operation: [
1636
+ 'api.applications.integrations.integration.login'
1637
+ ]
1638
+ }
1639
+ },
1640
+ typeOptions: {
1641
+ loadOptionsMethod: 'getProjects'
1642
+ }
1643
+ },
1644
+ {
1645
+ displayName: 'Credentials',
1646
+ required: true,
1647
+ name: 'credentials',
1648
+ type: 'json',
1649
+ default: '{\n "email": "user@crowdin.com",\n "password": "password"\n}',
1650
+ description: 'Login Form Fields. Get via [Integration Login Form Fields](#operation/api.applications.integrations.integration.fields)',
1651
+ routing: {
1652
+ send: {
1653
+ property: 'credentials',
1654
+ propertyInDotNotation: false,
1655
+ type: 'body',
1656
+ value: '={{ JSON.parse($value) }}'
1657
+ }
1658
+ },
1659
+ displayOptions: {
1660
+ show: {
1661
+ resource: [
1662
+ 'integrations'
1663
+ ],
1664
+ operation: [
1665
+ 'api.applications.integrations.integration.login'
1666
+ ]
1667
+ }
1668
+ }
1669
+ },
1670
+ {
1671
+ displayName: 'Return All',
1672
+ name: 'returnAll',
1673
+ type: 'boolean',
1674
+ default: true,
1675
+ description: 'Whether to return all results or only up to a given limit',
1676
+ displayOptions: {
1677
+ show: {
1678
+ resource: [
1679
+ 'integrations'
1680
+ ],
1681
+ operation: [
1682
+ 'api.applications.integrations.job.list'
1683
+ ]
1684
+ }
1685
+ }
1686
+ }
1687
+ ];
1688
+ //# sourceMappingURL=integrations.js.map