@crowdin/n8n-nodes-crowdin 0.9.1 → 0.11.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 (67) hide show
  1. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +7 -281
  2. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
  3. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js +116 -65
  4. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js.map +1 -1
  5. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +35 -41
  6. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  7. package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js +26 -58
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js.map +1 -1
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js +79 -1
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js.map +1 -1
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js +272 -1819
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js.map +1 -1
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +1719 -49
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
  15. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +7 -281
  16. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
  17. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js +116 -65
  18. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js.map +1 -1
  19. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +35 -41
  20. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  21. package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js +26 -58
  22. package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js.map +1 -1
  23. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js +273 -1820
  24. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js.map +1 -1
  25. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +1677 -32
  26. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
  27. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +7 -281
  28. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
  29. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js +116 -65
  30. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js.map +1 -1
  31. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +19 -25
  32. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  33. package/dist/nodes/Crowdin/properties/enterprise/fileBased/reports.js +80 -148
  34. package/dist/nodes/Crowdin/properties/enterprise/fileBased/reports.js.map +1 -1
  35. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +79 -1
  36. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js.map +1 -1
  37. package/dist/nodes/Crowdin/properties/enterprise/fileBased/tasks.js +64 -11
  38. package/dist/nodes/Crowdin/properties/enterprise/fileBased/tasks.js.map +1 -1
  39. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +1745 -49
  40. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
  41. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +7 -281
  42. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
  43. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js +116 -65
  44. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js.map +1 -1
  45. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js +0 -6
  46. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
  47. package/dist/nodes/Crowdin/properties/enterprise/stringBased/reports.js +80 -148
  48. package/dist/nodes/Crowdin/properties/enterprise/stringBased/reports.js.map +1 -1
  49. package/dist/nodes/Crowdin/properties/enterprise/stringBased/tasks.js +64 -11
  50. package/dist/nodes/Crowdin/properties/enterprise/stringBased/tasks.js.map +1 -1
  51. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +1703 -32
  52. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
  53. package/dist/package.json +1 -1
  54. package/dist/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +1 -1
  56. package/dist/nodes/Crowdin/properties/crowdin/fileBased/bundles.d.ts +0 -2
  57. package/dist/nodes/Crowdin/properties/crowdin/fileBased/bundles.js +0 -1453
  58. package/dist/nodes/Crowdin/properties/crowdin/fileBased/bundles.js.map +0 -1
  59. package/dist/nodes/Crowdin/properties/crowdin/stringBased/bundles.d.ts +0 -2
  60. package/dist/nodes/Crowdin/properties/crowdin/stringBased/bundles.js +0 -1453
  61. package/dist/nodes/Crowdin/properties/crowdin/stringBased/bundles.js.map +0 -1
  62. package/dist/nodes/Crowdin/properties/enterprise/fileBased/bundles.d.ts +0 -2
  63. package/dist/nodes/Crowdin/properties/enterprise/fileBased/bundles.js +0 -1453
  64. package/dist/nodes/Crowdin/properties/enterprise/fileBased/bundles.js.map +0 -1
  65. package/dist/nodes/Crowdin/properties/enterprise/stringBased/bundles.d.ts +0 -2
  66. package/dist/nodes/Crowdin/properties/enterprise/stringBased/bundles.js +0 -1453
  67. package/dist/nodes/Crowdin/properties/enterprise/stringBased/bundles.js.map +0 -1
@@ -1,1453 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bundlesProperties = void 0;
4
- const preSend_1 = require("../../../utils/preSend");
5
- exports.bundlesProperties = [
6
- {
7
- displayName: 'Operation',
8
- name: 'operation',
9
- type: 'options',
10
- noDataExpression: true,
11
- displayOptions: {
12
- show: {
13
- resource: [
14
- 'bundles'
15
- ]
16
- }
17
- },
18
- options: [
19
- {
20
- name: 'List Bundles',
21
- value: 'api.projects.bundles.getMany',
22
- action: 'List Bundles',
23
- description: '**Required scopes:** `project.translation` (Read only).',
24
- routing: {
25
- request: {
26
- method: 'GET',
27
- url: '=/projects/{{$parameter["projectId"]}}/bundles'
28
- },
29
- send: {
30
- paginate: '={{$parameter["returnAll"]}}'
31
- },
32
- output: {
33
- postReceive: [
34
- {
35
- type: 'rootProperty',
36
- enabled: '={{!$parameter["returnAll"]}}',
37
- properties: {
38
- property: 'data'
39
- }
40
- }
41
- ]
42
- }
43
- }
44
- },
45
- {
46
- name: 'Add Bundle',
47
- value: 'api.projects.bundles.post',
48
- action: 'Add Bundle',
49
- description: '**Required scopes:** `project.source.file` (Read and Write).',
50
- routing: {
51
- request: {
52
- method: 'POST',
53
- url: '=/projects/{{$parameter["projectId"]}}/bundles'
54
- }
55
- }
56
- },
57
- {
58
- name: 'Get Bundle',
59
- value: 'api.projects.bundles.get',
60
- action: 'Get Bundle',
61
- description: '**Required scopes:** `project.source.file` (Read only).',
62
- routing: {
63
- request: {
64
- method: 'GET',
65
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}'
66
- }
67
- }
68
- },
69
- {
70
- name: 'Delete Bundle',
71
- value: 'api.projects.bundles.delete',
72
- action: 'Delete Bundle',
73
- description: '**Required scopes:** `project.source.file` (Read and Write).',
74
- routing: {
75
- request: {
76
- method: 'DELETE',
77
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}'
78
- },
79
- output: {
80
- postReceive: [
81
- {
82
- type: 'set',
83
- properties: {
84
- value: '={{ { "success": true } }}'
85
- }
86
- }
87
- ]
88
- }
89
- }
90
- },
91
- {
92
- name: 'Edit Bundle',
93
- value: 'api.projects.bundles.patch',
94
- action: 'Edit Bundle',
95
- description: '**Required scopes:** `project.source.file` (Read and Write).',
96
- routing: {
97
- request: {
98
- method: 'PATCH',
99
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}'
100
- },
101
- send: {
102
- preSend: [
103
- preSend_1.transformToJsonPatch
104
- ]
105
- }
106
- }
107
- },
108
- {
109
- name: 'Download Bundle',
110
- value: 'api.projects.bundles.exports.download.get',
111
- action: 'Download Bundle',
112
- description: '**Required scopes:** `project.translation` (Read only).',
113
- routing: {
114
- request: {
115
- method: 'GET',
116
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}/exports/{{$parameter["exportId"]}}/download'
117
- }
118
- }
119
- },
120
- {
121
- name: 'Export Bundle',
122
- value: 'api.projects.bundles.exports.post',
123
- action: 'Export Bundle',
124
- description: '**Required scopes:** `project.translation` (Read only).',
125
- routing: {
126
- request: {
127
- method: 'POST',
128
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}/exports'
129
- }
130
- }
131
- },
132
- {
133
- name: 'Check Bundle Export Status',
134
- value: 'api.projects.bundles.exports.get',
135
- action: 'Check Bundle Export Status',
136
- description: '**Required scopes:** `project.translation` (Read only).',
137
- routing: {
138
- request: {
139
- method: 'GET',
140
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}/exports/{{$parameter["exportId"]}}'
141
- }
142
- }
143
- },
144
- {
145
- name: 'Bundle List Files',
146
- value: 'api.projects.bundles.files.getMany',
147
- action: 'Bundle List Files',
148
- description: '**Required scopes:** `project.source.file` (Read only).',
149
- routing: {
150
- request: {
151
- method: 'GET',
152
- url: '=/projects/{{$parameter["projectId"]}}/bundles/{{$parameter["bundleId"]}}/files'
153
- },
154
- send: {
155
- paginate: '={{$parameter["returnAll"]}}'
156
- },
157
- output: {
158
- postReceive: [
159
- {
160
- type: 'rootProperty',
161
- enabled: '={{!$parameter["returnAll"]}}',
162
- properties: {
163
- property: 'data'
164
- }
165
- }
166
- ]
167
- }
168
- }
169
- }
170
- ],
171
- default: 'api.projects.bundles.getMany'
172
- },
173
- {
174
- displayName: 'GET /projects/{projectId}/bundles',
175
- name: 'operation',
176
- type: 'notice',
177
- typeOptions: {
178
- theme: 'info'
179
- },
180
- default: '',
181
- displayOptions: {
182
- show: {
183
- resource: [
184
- 'bundles'
185
- ],
186
- operation: [
187
- 'api.projects.bundles.getMany'
188
- ]
189
- }
190
- }
191
- },
192
- {
193
- displayName: 'POST /projects/{projectId}/bundles',
194
- name: 'operation',
195
- type: 'notice',
196
- typeOptions: {
197
- theme: 'info'
198
- },
199
- default: '',
200
- displayOptions: {
201
- show: {
202
- resource: [
203
- 'bundles'
204
- ],
205
- operation: [
206
- 'api.projects.bundles.post'
207
- ]
208
- }
209
- }
210
- },
211
- {
212
- displayName: 'GET /projects/{projectId}/bundles/{bundleId}',
213
- name: 'operation',
214
- type: 'notice',
215
- typeOptions: {
216
- theme: 'info'
217
- },
218
- default: '',
219
- displayOptions: {
220
- show: {
221
- resource: [
222
- 'bundles'
223
- ],
224
- operation: [
225
- 'api.projects.bundles.get'
226
- ]
227
- }
228
- }
229
- },
230
- {
231
- displayName: 'DELETE /projects/{projectId}/bundles/{bundleId}',
232
- name: 'operation',
233
- type: 'notice',
234
- typeOptions: {
235
- theme: 'info'
236
- },
237
- default: '',
238
- displayOptions: {
239
- show: {
240
- resource: [
241
- 'bundles'
242
- ],
243
- operation: [
244
- 'api.projects.bundles.delete'
245
- ]
246
- }
247
- }
248
- },
249
- {
250
- displayName: 'PATCH /projects/{projectId}/bundles/{bundleId}',
251
- name: 'operation',
252
- type: 'notice',
253
- typeOptions: {
254
- theme: 'info'
255
- },
256
- default: '',
257
- displayOptions: {
258
- show: {
259
- resource: [
260
- 'bundles'
261
- ],
262
- operation: [
263
- 'api.projects.bundles.patch'
264
- ]
265
- }
266
- }
267
- },
268
- {
269
- displayName: 'GET /projects/{projectId}/bundles/{bundleId}/exports/{exportId}/download',
270
- name: 'operation',
271
- type: 'notice',
272
- typeOptions: {
273
- theme: 'info'
274
- },
275
- default: '',
276
- displayOptions: {
277
- show: {
278
- resource: [
279
- 'bundles'
280
- ],
281
- operation: [
282
- 'api.projects.bundles.exports.download.get'
283
- ]
284
- }
285
- }
286
- },
287
- {
288
- displayName: 'POST /projects/{projectId}/bundles/{bundleId}/exports',
289
- name: 'operation',
290
- type: 'notice',
291
- typeOptions: {
292
- theme: 'info'
293
- },
294
- default: '',
295
- displayOptions: {
296
- show: {
297
- resource: [
298
- 'bundles'
299
- ],
300
- operation: [
301
- 'api.projects.bundles.exports.post'
302
- ]
303
- }
304
- }
305
- },
306
- {
307
- displayName: 'GET /projects/{projectId}/bundles/{bundleId}/exports/{exportId}',
308
- name: 'operation',
309
- type: 'notice',
310
- typeOptions: {
311
- theme: 'info'
312
- },
313
- default: '',
314
- displayOptions: {
315
- show: {
316
- resource: [
317
- 'bundles'
318
- ],
319
- operation: [
320
- 'api.projects.bundles.exports.get'
321
- ]
322
- }
323
- }
324
- },
325
- {
326
- displayName: 'GET /projects/{projectId}/bundles/{bundleId}/files',
327
- name: 'operation',
328
- type: 'notice',
329
- typeOptions: {
330
- theme: 'info'
331
- },
332
- default: '',
333
- displayOptions: {
334
- show: {
335
- resource: [
336
- 'bundles'
337
- ],
338
- operation: [
339
- 'api.projects.bundles.files.getMany'
340
- ]
341
- }
342
- }
343
- },
344
- {
345
- displayName: 'Project Id',
346
- name: 'projectId',
347
- required: true,
348
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
349
- default: '',
350
- type: 'options',
351
- displayOptions: {
352
- show: {
353
- resource: [
354
- 'bundles'
355
- ],
356
- operation: [
357
- 'api.projects.bundles.getMany'
358
- ]
359
- }
360
- },
361
- typeOptions: {
362
- loadOptionsMethod: 'getProjects'
363
- }
364
- },
365
- {
366
- displayName: 'Limit',
367
- name: 'limit',
368
- description: 'Max number of results to return',
369
- default: 50,
370
- type: 'number',
371
- routing: {
372
- send: {
373
- type: 'query',
374
- property: 'limit',
375
- value: '={{ typeof $value === \'number\' ? $value : undefined }}',
376
- propertyInDotNotation: false
377
- }
378
- },
379
- displayOptions: {
380
- show: {
381
- resource: [
382
- 'bundles'
383
- ],
384
- operation: [
385
- 'api.projects.bundles.getMany'
386
- ],
387
- returnAll: [
388
- false
389
- ]
390
- }
391
- },
392
- typeOptions: {
393
- minValue: 1
394
- }
395
- },
396
- {
397
- displayName: 'Project Id',
398
- name: 'projectId',
399
- required: true,
400
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
401
- default: '',
402
- type: 'options',
403
- displayOptions: {
404
- show: {
405
- resource: [
406
- 'bundles'
407
- ],
408
- operation: [
409
- 'api.projects.bundles.post'
410
- ]
411
- }
412
- },
413
- typeOptions: {
414
- loadOptionsMethod: 'getProjects'
415
- }
416
- },
417
- {
418
- displayName: 'Name',
419
- required: true,
420
- name: 'name',
421
- type: 'string',
422
- default: '',
423
- description: 'Defines name',
424
- routing: {
425
- send: {
426
- property: 'name',
427
- propertyInDotNotation: false,
428
- type: 'body',
429
- value: '={{ $value || undefined }}'
430
- }
431
- },
432
- displayOptions: {
433
- show: {
434
- resource: [
435
- 'bundles'
436
- ],
437
- operation: [
438
- 'api.projects.bundles.post'
439
- ]
440
- }
441
- },
442
- placeholder: 'Resx bundle'
443
- },
444
- {
445
- displayName: 'Format',
446
- name: 'format',
447
- type: 'string',
448
- default: '',
449
- description: 'Defines export file format. If not provided, files will be exported in their original format.\n\n__Note:__ Required for strings-based projects',
450
- routing: {
451
- send: {
452
- property: 'format',
453
- propertyInDotNotation: false,
454
- type: 'body',
455
- value: '={{ $value || undefined }}'
456
- }
457
- },
458
- displayOptions: {
459
- show: {
460
- resource: [
461
- 'bundles'
462
- ],
463
- operation: [
464
- 'api.projects.bundles.post'
465
- ]
466
- }
467
- },
468
- placeholder: 'crowdin-resx'
469
- },
470
- {
471
- displayName: 'Source Patterns',
472
- required: true,
473
- name: 'sourcePatterns',
474
- type: 'fixedCollection',
475
- default: {},
476
- routing: {
477
- send: {
478
- property: 'sourcePatterns',
479
- propertyInDotNotation: false,
480
- type: 'body',
481
- value: '={{ $value.items?.map(i => i._value) || undefined }}'
482
- }
483
- },
484
- displayOptions: {
485
- show: {
486
- resource: [
487
- 'bundles'
488
- ],
489
- operation: [
490
- 'api.projects.bundles.post'
491
- ]
492
- }
493
- },
494
- typeOptions: {
495
- multipleValues: true
496
- },
497
- placeholder: 'Add Item',
498
- options: [
499
- {
500
- displayName: 'Items',
501
- name: 'items',
502
- values: [
503
- {
504
- displayName: 'Value',
505
- name: '_value',
506
- type: 'string',
507
- default: ''
508
- }
509
- ]
510
- }
511
- ]
512
- },
513
- {
514
- displayName: 'Ignore Patterns',
515
- name: 'ignorePatterns',
516
- type: 'fixedCollection',
517
- default: {},
518
- routing: {
519
- send: {
520
- property: 'ignorePatterns',
521
- propertyInDotNotation: false,
522
- type: 'body',
523
- value: '={{ $value.items?.map(i => i._value) || undefined }}'
524
- }
525
- },
526
- displayOptions: {
527
- show: {
528
- resource: [
529
- 'bundles'
530
- ],
531
- operation: [
532
- 'api.projects.bundles.post'
533
- ]
534
- }
535
- },
536
- typeOptions: {
537
- multipleValues: true
538
- },
539
- placeholder: 'Add Item',
540
- options: [
541
- {
542
- displayName: 'Items',
543
- name: 'items',
544
- values: [
545
- {
546
- displayName: 'Value',
547
- name: '_value',
548
- type: 'string',
549
- default: ''
550
- }
551
- ]
552
- }
553
- ]
554
- },
555
- {
556
- displayName: 'Export Pattern',
557
- name: 'exportPattern',
558
- type: 'string',
559
- default: '',
560
- description: 'Bundle export pattern. Defines bundle name in resulting translations bundle. **Required** if `format` is specified. If `format` is not specified, uses default pattern based on file structure\n\n__Note:__ Can\'t contain `: * ? " < > |` symbols',
561
- routing: {
562
- send: {
563
- property: 'exportPattern',
564
- propertyInDotNotation: false,
565
- type: 'body',
566
- value: '={{ $value || undefined }}'
567
- }
568
- },
569
- displayOptions: {
570
- show: {
571
- resource: [
572
- 'bundles'
573
- ],
574
- operation: [
575
- 'api.projects.bundles.post'
576
- ]
577
- }
578
- },
579
- placeholder: 'strings-%two_letter_code%.resx'
580
- },
581
- {
582
- displayName: 'Is Multilingual',
583
- name: 'isMultilingual',
584
- type: 'boolean',
585
- default: false,
586
- description: 'Export translations in multilingual file',
587
- routing: {
588
- send: {
589
- property: 'isMultilingual',
590
- propertyInDotNotation: false,
591
- type: 'body',
592
- value: '={{ $value }}'
593
- }
594
- },
595
- displayOptions: {
596
- show: {
597
- resource: [
598
- 'bundles'
599
- ],
600
- operation: [
601
- 'api.projects.bundles.post'
602
- ]
603
- }
604
- }
605
- },
606
- {
607
- displayName: 'Include Project Source Language',
608
- name: 'includeProjectSourceLanguage',
609
- type: 'boolean',
610
- default: false,
611
- description: 'Add project source language to bundle',
612
- routing: {
613
- send: {
614
- property: 'includeProjectSourceLanguage',
615
- propertyInDotNotation: false,
616
- type: 'body',
617
- value: '={{ $value }}'
618
- }
619
- },
620
- displayOptions: {
621
- show: {
622
- resource: [
623
- 'bundles'
624
- ],
625
- operation: [
626
- 'api.projects.bundles.post'
627
- ]
628
- }
629
- }
630
- },
631
- {
632
- displayName: 'Source Language Export Pattern',
633
- name: 'sourceLanguageExportPattern',
634
- type: 'string',
635
- default: '',
636
- description: 'Source language export pattern. Works only when `includeProjectSourceLanguage` is enabled.\n\n__Note:__ Can\'t contain `: * ? " < > |` symbols',
637
- routing: {
638
- send: {
639
- property: 'sourceLanguageExportPattern',
640
- propertyInDotNotation: false,
641
- type: 'body',
642
- value: '={{ $value || undefined }}'
643
- }
644
- },
645
- displayOptions: {
646
- show: {
647
- resource: [
648
- 'bundles'
649
- ],
650
- operation: [
651
- 'api.projects.bundles.post'
652
- ]
653
- }
654
- },
655
- placeholder: 'strings-%two_letter_code%.resx'
656
- },
657
- {
658
- displayName: 'Include In Context Pseudo Language',
659
- name: 'includeInContextPseudoLanguage',
660
- type: 'boolean',
661
- default: true,
662
- description: 'Add In-Context pseudo-language to bundle',
663
- routing: {
664
- send: {
665
- property: 'includeInContextPseudoLanguage',
666
- propertyInDotNotation: false,
667
- type: 'body',
668
- value: '={{ $value }}'
669
- }
670
- },
671
- displayOptions: {
672
- show: {
673
- resource: [
674
- 'bundles'
675
- ],
676
- operation: [
677
- 'api.projects.bundles.post'
678
- ]
679
- }
680
- }
681
- },
682
- {
683
- displayName: 'Label Ids',
684
- name: 'labelIds',
685
- type: 'multiOptions',
686
- default: [],
687
- description: 'Label Identifiers. Get via [List Labels](#operation/api.projects.labels.getMany)\n\n__Note:__ Can\'t be used when `format` is `null`',
688
- routing: {
689
- send: {
690
- property: 'labelIds',
691
- propertyInDotNotation: false,
692
- type: 'body',
693
- value: '={{ $value }}'
694
- }
695
- },
696
- displayOptions: {
697
- show: {
698
- resource: [
699
- 'bundles'
700
- ],
701
- operation: [
702
- 'api.projects.bundles.post'
703
- ]
704
- }
705
- },
706
- typeOptions: {
707
- loadOptionsMethod: 'getProjectLabelsMulti',
708
- loadOptionsDependsOn: [
709
- 'projectId'
710
- ]
711
- }
712
- },
713
- {
714
- displayName: 'Exclude Label Ids',
715
- name: 'excludeLabelIds',
716
- type: 'multiOptions',
717
- default: [],
718
- description: 'Label Identifiers. Get via [List Labels](#operation/api.projects.labels.getMany)\n\n__Note:__ Can\'t be used when `format` is `null`',
719
- routing: {
720
- send: {
721
- property: 'excludeLabelIds',
722
- propertyInDotNotation: false,
723
- type: 'body',
724
- value: '={{ $value }}'
725
- }
726
- },
727
- displayOptions: {
728
- show: {
729
- resource: [
730
- 'bundles'
731
- ],
732
- operation: [
733
- 'api.projects.bundles.post'
734
- ]
735
- }
736
- },
737
- typeOptions: {
738
- loadOptionsMethod: 'getProjectLabelsMulti',
739
- loadOptionsDependsOn: [
740
- 'projectId'
741
- ]
742
- }
743
- },
744
- {
745
- displayName: 'Label Match Rule',
746
- name: 'labelMatchRule',
747
- type: 'options',
748
- default: '',
749
- description: 'Match rule for labels:\n- "all" - all labels must be present in string\n- "any" - any of the labels must be present in string\n\n __Note:__ Can only be used when `labelIds` parameter is provided',
750
- options: [
751
- {
752
- name: '-',
753
- value: ''
754
- },
755
- {
756
- name: 'all',
757
- value: 'all'
758
- },
759
- {
760
- name: 'any',
761
- value: 'any'
762
- }
763
- ],
764
- routing: {
765
- send: {
766
- property: 'labelMatchRule',
767
- propertyInDotNotation: false,
768
- type: 'body',
769
- value: '={{ $value || undefined }}'
770
- }
771
- },
772
- displayOptions: {
773
- show: {
774
- resource: [
775
- 'bundles'
776
- ],
777
- operation: [
778
- 'api.projects.bundles.post'
779
- ]
780
- }
781
- }
782
- },
783
- {
784
- displayName: 'Exclude Label Match Rule',
785
- name: 'excludeLabelMatchRule',
786
- type: 'options',
787
- default: '',
788
- description: 'Match rule for excluded labels:\n - "all" - all labels must be present in string\n - "any" - any of the labels must be present in string\n\n __Note:__ Can only be used when `excludeLabelIds` parameter is provided',
789
- options: [
790
- {
791
- name: '-',
792
- value: ''
793
- },
794
- {
795
- name: 'all',
796
- value: 'all'
797
- },
798
- {
799
- name: 'any',
800
- value: 'any'
801
- }
802
- ],
803
- routing: {
804
- send: {
805
- property: 'excludeLabelMatchRule',
806
- propertyInDotNotation: false,
807
- type: 'body',
808
- value: '={{ $value || undefined }}'
809
- }
810
- },
811
- displayOptions: {
812
- show: {
813
- resource: [
814
- 'bundles'
815
- ],
816
- operation: [
817
- 'api.projects.bundles.post'
818
- ]
819
- }
820
- }
821
- },
822
- {
823
- displayName: 'Language Ids',
824
- name: 'languageIds',
825
- type: 'multiOptions',
826
- default: [],
827
- description: 'Language Identifiers. Get via [List Supported Languages](#operation/api.languages.getMany). If provided, bundle will only export specified languages. If not provided, bundle will export all project target languages.',
828
- routing: {
829
- send: {
830
- property: 'languageIds',
831
- propertyInDotNotation: false,
832
- type: 'body',
833
- value: '={{ $value }}'
834
- }
835
- },
836
- displayOptions: {
837
- show: {
838
- resource: [
839
- 'bundles'
840
- ],
841
- operation: [
842
- 'api.projects.bundles.post'
843
- ]
844
- }
845
- },
846
- typeOptions: {
847
- loadOptionsMethod: 'getLanguagesMulti'
848
- }
849
- },
850
- {
851
- displayName: 'Project Id',
852
- name: 'projectId',
853
- required: true,
854
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
855
- default: '',
856
- type: 'options',
857
- displayOptions: {
858
- show: {
859
- resource: [
860
- 'bundles'
861
- ],
862
- operation: [
863
- 'api.projects.bundles.get'
864
- ]
865
- }
866
- },
867
- typeOptions: {
868
- loadOptionsMethod: 'getProjects'
869
- }
870
- },
871
- {
872
- displayName: 'Bundle Id',
873
- name: 'bundleId',
874
- required: true,
875
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
876
- default: '',
877
- type: 'options',
878
- displayOptions: {
879
- show: {
880
- resource: [
881
- 'bundles'
882
- ],
883
- operation: [
884
- 'api.projects.bundles.get'
885
- ]
886
- }
887
- },
888
- typeOptions: {
889
- loadOptionsMethod: 'getProjectBundles',
890
- loadOptionsDependsOn: [
891
- 'projectId'
892
- ]
893
- }
894
- },
895
- {
896
- displayName: 'Project Id',
897
- name: 'projectId',
898
- required: true,
899
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
900
- default: '',
901
- type: 'options',
902
- displayOptions: {
903
- show: {
904
- resource: [
905
- 'bundles'
906
- ],
907
- operation: [
908
- 'api.projects.bundles.delete'
909
- ]
910
- }
911
- },
912
- typeOptions: {
913
- loadOptionsMethod: 'getProjects'
914
- }
915
- },
916
- {
917
- displayName: 'Bundle Id',
918
- name: 'bundleId',
919
- required: true,
920
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
921
- default: '',
922
- type: 'options',
923
- displayOptions: {
924
- show: {
925
- resource: [
926
- 'bundles'
927
- ],
928
- operation: [
929
- 'api.projects.bundles.delete'
930
- ]
931
- }
932
- },
933
- typeOptions: {
934
- loadOptionsMethod: 'getProjectBundles',
935
- loadOptionsDependsOn: [
936
- 'projectId'
937
- ]
938
- }
939
- },
940
- {
941
- displayName: 'Project Id',
942
- name: 'projectId',
943
- required: true,
944
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
945
- default: '',
946
- type: 'options',
947
- displayOptions: {
948
- show: {
949
- resource: [
950
- 'bundles'
951
- ],
952
- operation: [
953
- 'api.projects.bundles.patch'
954
- ]
955
- }
956
- },
957
- typeOptions: {
958
- loadOptionsMethod: 'getProjects'
959
- }
960
- },
961
- {
962
- displayName: 'Bundle Id',
963
- name: 'bundleId',
964
- required: true,
965
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
966
- default: '',
967
- type: 'options',
968
- displayOptions: {
969
- show: {
970
- resource: [
971
- 'bundles'
972
- ],
973
- operation: [
974
- 'api.projects.bundles.patch'
975
- ]
976
- }
977
- },
978
- typeOptions: {
979
- loadOptionsMethod: 'getProjectBundles',
980
- loadOptionsDependsOn: [
981
- 'projectId'
982
- ]
983
- }
984
- },
985
- {
986
- displayName: 'Project Id',
987
- name: 'projectId',
988
- required: true,
989
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
990
- default: '',
991
- type: 'options',
992
- displayOptions: {
993
- show: {
994
- resource: [
995
- 'bundles'
996
- ],
997
- operation: [
998
- 'api.projects.bundles.exports.download.get'
999
- ]
1000
- }
1001
- },
1002
- typeOptions: {
1003
- loadOptionsMethod: 'getProjects'
1004
- }
1005
- },
1006
- {
1007
- displayName: 'Bundle Id',
1008
- name: 'bundleId',
1009
- required: true,
1010
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
1011
- default: '',
1012
- type: 'options',
1013
- displayOptions: {
1014
- show: {
1015
- resource: [
1016
- 'bundles'
1017
- ],
1018
- operation: [
1019
- 'api.projects.bundles.exports.download.get'
1020
- ]
1021
- }
1022
- },
1023
- typeOptions: {
1024
- loadOptionsMethod: 'getProjectBundles',
1025
- loadOptionsDependsOn: [
1026
- 'projectId'
1027
- ]
1028
- }
1029
- },
1030
- {
1031
- displayName: 'Export Id',
1032
- name: 'exportId',
1033
- required: true,
1034
- description: 'Export Identifier, consists of 36 characters. Get via [Export Bundle](#operation/api.projects.bundles.exports.post)',
1035
- default: '',
1036
- type: 'string',
1037
- displayOptions: {
1038
- show: {
1039
- resource: [
1040
- 'bundles'
1041
- ],
1042
- operation: [
1043
- 'api.projects.bundles.exports.download.get'
1044
- ]
1045
- }
1046
- }
1047
- },
1048
- {
1049
- displayName: 'Project Id',
1050
- name: 'projectId',
1051
- required: true,
1052
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1053
- default: '',
1054
- type: 'options',
1055
- displayOptions: {
1056
- show: {
1057
- resource: [
1058
- 'bundles'
1059
- ],
1060
- operation: [
1061
- 'api.projects.bundles.exports.post'
1062
- ]
1063
- }
1064
- },
1065
- typeOptions: {
1066
- loadOptionsMethod: 'getProjects'
1067
- }
1068
- },
1069
- {
1070
- displayName: 'Bundle Id',
1071
- name: 'bundleId',
1072
- required: true,
1073
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
1074
- default: '',
1075
- type: 'options',
1076
- displayOptions: {
1077
- show: {
1078
- resource: [
1079
- 'bundles'
1080
- ],
1081
- operation: [
1082
- 'api.projects.bundles.exports.post'
1083
- ]
1084
- }
1085
- },
1086
- typeOptions: {
1087
- loadOptionsMethod: 'getProjectBundles',
1088
- loadOptionsDependsOn: [
1089
- 'projectId'
1090
- ]
1091
- }
1092
- },
1093
- {
1094
- displayName: 'Project Id',
1095
- name: 'projectId',
1096
- required: true,
1097
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1098
- default: '',
1099
- type: 'options',
1100
- displayOptions: {
1101
- show: {
1102
- resource: [
1103
- 'bundles'
1104
- ],
1105
- operation: [
1106
- 'api.projects.bundles.exports.get'
1107
- ]
1108
- }
1109
- },
1110
- typeOptions: {
1111
- loadOptionsMethod: 'getProjects'
1112
- }
1113
- },
1114
- {
1115
- displayName: 'Bundle Id',
1116
- name: 'bundleId',
1117
- required: true,
1118
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
1119
- default: '',
1120
- type: 'options',
1121
- displayOptions: {
1122
- show: {
1123
- resource: [
1124
- 'bundles'
1125
- ],
1126
- operation: [
1127
- 'api.projects.bundles.exports.get'
1128
- ]
1129
- }
1130
- },
1131
- typeOptions: {
1132
- loadOptionsMethod: 'getProjectBundles',
1133
- loadOptionsDependsOn: [
1134
- 'projectId'
1135
- ]
1136
- }
1137
- },
1138
- {
1139
- displayName: 'Export Id',
1140
- name: 'exportId',
1141
- required: true,
1142
- description: 'Export Identifier, consists of 36 characters. Get via [Export Bundle](#operation/api.projects.bundles.exports.post)',
1143
- default: '',
1144
- type: 'string',
1145
- displayOptions: {
1146
- show: {
1147
- resource: [
1148
- 'bundles'
1149
- ],
1150
- operation: [
1151
- 'api.projects.bundles.exports.get'
1152
- ]
1153
- }
1154
- }
1155
- },
1156
- {
1157
- displayName: 'Project Id',
1158
- name: 'projectId',
1159
- required: true,
1160
- description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1161
- default: '',
1162
- type: 'options',
1163
- displayOptions: {
1164
- show: {
1165
- resource: [
1166
- 'bundles'
1167
- ],
1168
- operation: [
1169
- 'api.projects.bundles.files.getMany'
1170
- ]
1171
- }
1172
- },
1173
- typeOptions: {
1174
- loadOptionsMethod: 'getProjects'
1175
- }
1176
- },
1177
- {
1178
- displayName: 'Bundle Id',
1179
- name: 'bundleId',
1180
- required: true,
1181
- description: 'Bundle Identifier. Get via [List Bundles](#operation/api.projects.bundles.getMany)',
1182
- default: '',
1183
- type: 'options',
1184
- displayOptions: {
1185
- show: {
1186
- resource: [
1187
- 'bundles'
1188
- ],
1189
- operation: [
1190
- 'api.projects.bundles.files.getMany'
1191
- ]
1192
- }
1193
- },
1194
- typeOptions: {
1195
- loadOptionsMethod: 'getProjectBundles',
1196
- loadOptionsDependsOn: [
1197
- 'projectId'
1198
- ]
1199
- }
1200
- },
1201
- {
1202
- displayName: 'Limit',
1203
- name: 'limit',
1204
- description: 'Max number of results to return',
1205
- default: 50,
1206
- type: 'number',
1207
- routing: {
1208
- send: {
1209
- type: 'query',
1210
- property: 'limit',
1211
- value: '={{ typeof $value === \'number\' ? $value : undefined }}',
1212
- propertyInDotNotation: false
1213
- }
1214
- },
1215
- displayOptions: {
1216
- show: {
1217
- resource: [
1218
- 'bundles'
1219
- ],
1220
- operation: [
1221
- 'api.projects.bundles.files.getMany'
1222
- ],
1223
- returnAll: [
1224
- false
1225
- ]
1226
- }
1227
- },
1228
- typeOptions: {
1229
- minValue: 1
1230
- }
1231
- },
1232
- {
1233
- displayName: 'Update Fields',
1234
- name: 'updateFields',
1235
- type: 'collection',
1236
- placeholder: 'Add Field',
1237
- default: {},
1238
- displayOptions: {
1239
- show: {
1240
- resource: [
1241
- 'bundles'
1242
- ],
1243
- operation: [
1244
- 'api.projects.bundles.patch'
1245
- ]
1246
- }
1247
- },
1248
- options: [
1249
- {
1250
- displayName: 'Name',
1251
- name: 'name',
1252
- type: 'string',
1253
- default: '',
1254
- description: 'Defines name',
1255
- placeholder: 'Resx bundle'
1256
- },
1257
- {
1258
- displayName: 'Format',
1259
- name: 'format',
1260
- type: 'string',
1261
- default: '',
1262
- description: 'Defines export file format. If not provided, files will be exported in their original format.\n\n__Note:__ Required for strings-based projects',
1263
- placeholder: 'crowdin-resx'
1264
- },
1265
- {
1266
- displayName: 'Source Patterns',
1267
- name: 'sourcePatterns',
1268
- type: 'fixedCollection',
1269
- default: {},
1270
- typeOptions: {
1271
- multipleValues: true
1272
- },
1273
- placeholder: 'Add Item',
1274
- options: [
1275
- {
1276
- name: 'items',
1277
- displayName: 'Items',
1278
- values: [
1279
- {
1280
- displayName: 'Value',
1281
- name: '_value',
1282
- type: 'string',
1283
- default: ''
1284
- }
1285
- ]
1286
- }
1287
- ]
1288
- },
1289
- {
1290
- displayName: 'Ignore Patterns',
1291
- name: 'ignorePatterns',
1292
- type: 'fixedCollection',
1293
- default: {},
1294
- typeOptions: {
1295
- multipleValues: true
1296
- },
1297
- placeholder: 'Add Item',
1298
- options: [
1299
- {
1300
- name: 'items',
1301
- displayName: 'Items',
1302
- values: [
1303
- {
1304
- displayName: 'Value',
1305
- name: '_value',
1306
- type: 'string',
1307
- default: ''
1308
- }
1309
- ]
1310
- }
1311
- ]
1312
- },
1313
- {
1314
- displayName: 'Export Pattern',
1315
- name: 'exportPattern',
1316
- type: 'string',
1317
- default: '',
1318
- description: 'Bundle export pattern. Defines bundle name in resulting translations bundle. **Required** if `format` is specified. If `format` is not specified, uses default pattern based on file structure\n\n__Note:__ Can\'t contain `: * ? " < > |` symbols',
1319
- placeholder: 'strings-%two_letter_code%.resx'
1320
- },
1321
- {
1322
- displayName: 'Is Multilingual',
1323
- name: 'isMultilingual',
1324
- type: 'boolean',
1325
- default: false,
1326
- description: 'Export translations in multilingual file'
1327
- },
1328
- {
1329
- displayName: 'Include Project Source Language',
1330
- name: 'includeProjectSourceLanguage',
1331
- type: 'boolean',
1332
- default: false,
1333
- description: 'Add project source language to bundle'
1334
- },
1335
- {
1336
- displayName: 'Include In Context Pseudo Language',
1337
- name: 'includeInContextPseudoLanguage',
1338
- type: 'boolean',
1339
- default: true,
1340
- description: 'Add In-Context pseudo-language to bundle'
1341
- },
1342
- {
1343
- displayName: 'Label Ids',
1344
- name: 'labelIds',
1345
- type: 'multiOptions',
1346
- default: [],
1347
- description: 'Label Identifiers. Get via [List Labels](#operation/api.projects.labels.getMany)\n\n__Note:__ Can\'t be used when `format` is `null`',
1348
- typeOptions: {
1349
- loadOptionsMethod: 'getProjectLabelsMulti',
1350
- loadOptionsDependsOn: [
1351
- 'projectId'
1352
- ]
1353
- }
1354
- },
1355
- {
1356
- displayName: 'Exclude Label Ids',
1357
- name: 'excludeLabelIds',
1358
- type: 'multiOptions',
1359
- default: [],
1360
- description: 'Label Identifiers. Get via [List Labels](#operation/api.projects.labels.getMany)\n\n__Note:__ Can\'t be used when `format` is `null`',
1361
- typeOptions: {
1362
- loadOptionsMethod: 'getProjectLabelsMulti',
1363
- loadOptionsDependsOn: [
1364
- 'projectId'
1365
- ]
1366
- }
1367
- },
1368
- {
1369
- displayName: 'Label Match Rule',
1370
- name: 'labelMatchRule',
1371
- type: 'options',
1372
- default: '',
1373
- description: 'Match rule for labels:\n- "all" - all labels must be present in string\n- "any" - any of the labels must be present in string\n\n __Note:__ Can only be used when `labelIds` parameter is provided',
1374
- options: [
1375
- {
1376
- name: '-',
1377
- value: ''
1378
- },
1379
- {
1380
- name: 'all',
1381
- value: 'all'
1382
- },
1383
- {
1384
- name: 'any',
1385
- value: 'any'
1386
- }
1387
- ]
1388
- },
1389
- {
1390
- displayName: 'Exclude Label Match Rule',
1391
- name: 'excludeLabelMatchRule',
1392
- type: 'options',
1393
- default: '',
1394
- description: 'Match rule for excluded labels:\n - "all" - all labels must be present in string\n - "any" - any of the labels must be present in string\n\n __Note:__ Can only be used when `excludeLabelIds` parameter is provided',
1395
- options: [
1396
- {
1397
- name: '-',
1398
- value: ''
1399
- },
1400
- {
1401
- name: 'all',
1402
- value: 'all'
1403
- },
1404
- {
1405
- name: 'any',
1406
- value: 'any'
1407
- }
1408
- ]
1409
- }
1410
- ],
1411
- routing: {
1412
- send: {
1413
- type: 'body',
1414
- value: '={{ $value }}'
1415
- }
1416
- }
1417
- },
1418
- {
1419
- displayName: 'Return All',
1420
- name: 'returnAll',
1421
- type: 'boolean',
1422
- default: true,
1423
- description: 'Whether to return all results or only up to a given limit',
1424
- displayOptions: {
1425
- show: {
1426
- resource: [
1427
- 'bundles'
1428
- ],
1429
- operation: [
1430
- 'api.projects.bundles.getMany'
1431
- ]
1432
- }
1433
- }
1434
- },
1435
- {
1436
- displayName: 'Return All',
1437
- name: 'returnAll',
1438
- type: 'boolean',
1439
- default: true,
1440
- description: 'Whether to return all results or only up to a given limit',
1441
- displayOptions: {
1442
- show: {
1443
- resource: [
1444
- 'bundles'
1445
- ],
1446
- operation: [
1447
- 'api.projects.bundles.files.getMany'
1448
- ]
1449
- }
1450
- }
1451
- }
1452
- ];
1453
- //# sourceMappingURL=bundles.js.map