@crowdin/n8n-nodes-crowdin 0.26.0 → 0.28.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 (91) hide show
  1. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +922 -20
  2. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
  3. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js +1 -1
  4. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js.map +1 -1
  5. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js +138 -106
  6. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js.map +1 -1
  7. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +7 -0
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/placeholders.d.ts +2 -0
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/placeholders.js +136 -0
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/placeholders.js.map +1 -0
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +39 -0
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js +32 -0
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js.map +1 -1
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +58 -0
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js +10 -2
  19. package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js.map +1 -1
  20. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +922 -20
  21. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
  22. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js +1 -1
  23. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js.map +1 -1
  24. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js +138 -106
  25. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js.map +1 -1
  26. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +7 -0
  27. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  28. package/dist/nodes/Crowdin/properties/crowdin/stringBased/placeholders.d.ts +2 -0
  29. package/dist/nodes/Crowdin/properties/crowdin/stringBased/placeholders.js +136 -0
  30. package/dist/nodes/Crowdin/properties/crowdin/stringBased/placeholders.js.map +1 -0
  31. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +39 -0
  32. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
  33. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js +32 -0
  34. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js.map +1 -1
  35. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +58 -0
  36. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
  37. package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js +10 -2
  38. package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js.map +1 -1
  39. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +885 -88
  40. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
  41. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js +1 -1
  42. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js.map +1 -1
  43. package/dist/nodes/Crowdin/properties/enterprise/fileBased/fields.js +120 -0
  44. package/dist/nodes/Crowdin/properties/enterprise/fileBased/fields.js.map +1 -1
  45. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js +138 -106
  46. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js.map +1 -1
  47. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +7 -0
  48. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  49. package/dist/nodes/Crowdin/properties/enterprise/fileBased/placeholders.d.ts +2 -0
  50. package/dist/nodes/Crowdin/properties/enterprise/fileBased/placeholders.js +1194 -0
  51. package/dist/nodes/Crowdin/properties/enterprise/fileBased/placeholders.js.map +1 -0
  52. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +39 -0
  53. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  54. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js +32 -0
  55. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js.map +1 -1
  56. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +58 -0
  57. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
  58. package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js +10 -2
  59. package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js.map +1 -1
  60. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +885 -88
  61. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
  62. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js +1 -1
  63. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js.map +1 -1
  64. package/dist/nodes/Crowdin/properties/enterprise/stringBased/fields.js +120 -0
  65. package/dist/nodes/Crowdin/properties/enterprise/stringBased/fields.js.map +1 -1
  66. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js +138 -106
  67. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js.map +1 -1
  68. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js +7 -0
  69. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
  70. package/dist/nodes/Crowdin/properties/enterprise/stringBased/placeholders.d.ts +2 -0
  71. package/dist/nodes/Crowdin/properties/enterprise/stringBased/placeholders.js +1194 -0
  72. package/dist/nodes/Crowdin/properties/enterprise/stringBased/placeholders.js.map +1 -0
  73. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +39 -0
  74. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  75. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js +32 -0
  76. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js.map +1 -1
  77. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +58 -0
  78. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
  79. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js +10 -2
  80. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js.map +1 -1
  81. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js +5 -0
  82. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js.map +1 -1
  83. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js +5 -0
  84. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js.map +1 -1
  85. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js +5 -0
  86. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js.map +1 -1
  87. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js +5 -0
  88. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js.map +1 -1
  89. package/dist/package.json +1 -1
  90. package/dist/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +1 -1
@@ -0,0 +1,1194 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.placeholdersProperties = void 0;
4
+ const preSend_1 = require("../../../utils/preSend");
5
+ exports.placeholdersProperties = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: [
14
+ 'placeholders'
15
+ ]
16
+ }
17
+ },
18
+ options: [
19
+ {
20
+ name: 'List Custom Placeholders',
21
+ value: 'api.custom-placeholders.getMany',
22
+ action: 'List Custom Placeholders',
23
+ description: '**Required scopes:** `custom-placeholder` (Read only).\n\nReturns a list of the custom placeholders of the organization.',
24
+ routing: {
25
+ request: {
26
+ method: 'GET',
27
+ url: '=/custom-placeholders'
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 Custom Placeholder',
47
+ value: 'api.custom-placeholders.post',
48
+ action: 'Add Custom Placeholder',
49
+ description: '**Required scopes:** `custom-placeholder` (Read and Write).\n\nCreates a custom placeholder for the organization. Assign it to a project with [Add Project Placeholder](#operation/api.projects.placeholders.post).',
50
+ routing: {
51
+ request: {
52
+ method: 'POST',
53
+ url: '=/custom-placeholders'
54
+ }
55
+ }
56
+ },
57
+ {
58
+ name: 'Get Custom Placeholder',
59
+ value: 'api.custom-placeholders.get',
60
+ action: 'Get Custom Placeholder',
61
+ description: '**Required scopes:** `custom-placeholder` (Read only).\n\nReturns a custom placeholder of the organization.',
62
+ routing: {
63
+ request: {
64
+ method: 'GET',
65
+ url: '=/custom-placeholders/{{$parameter["customPlaceholderId"]}}'
66
+ }
67
+ }
68
+ },
69
+ {
70
+ name: 'Delete Custom Placeholder',
71
+ value: 'api.custom-placeholders.delete',
72
+ action: 'Delete Custom Placeholder',
73
+ description: '**Required scopes:** `custom-placeholder` (Read and Write).\n\nDeletes a custom placeholder of the organization.',
74
+ routing: {
75
+ request: {
76
+ method: 'DELETE',
77
+ url: '=/custom-placeholders/{{$parameter["customPlaceholderId"]}}'
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 Custom Placeholder',
93
+ value: 'api.custom-placeholders.patch',
94
+ action: 'Edit Custom Placeholder',
95
+ description: '**Required scopes:** `custom-placeholder` (Read and Write).\n\nUpdates a custom placeholder of the organization.',
96
+ routing: {
97
+ request: {
98
+ method: 'PATCH',
99
+ url: '=/custom-placeholders/{{$parameter["customPlaceholderId"]}}'
100
+ },
101
+ send: {
102
+ preSend: [
103
+ preSend_1.transformToJsonPatch
104
+ ]
105
+ }
106
+ }
107
+ },
108
+ {
109
+ name: 'List Project Placeholders',
110
+ value: 'api.projects.placeholders.getMany',
111
+ action: 'List Project Placeholders',
112
+ description: '**Required scopes:** `project.placeholder` (Read only).\n\nReturns a list of the custom placeholders assigned to the project — the ones an organization defines itself. The placeholders Crowdin ships are listed by [List Project System Placeholders](#operation/api.projects.system-placeholders.getMany).',
113
+ routing: {
114
+ request: {
115
+ method: 'GET',
116
+ url: '=/projects/{{$parameter["projectId"]}}/placeholders'
117
+ },
118
+ send: {
119
+ paginate: '={{$parameter["returnAll"]}}'
120
+ },
121
+ output: {
122
+ postReceive: [
123
+ {
124
+ type: 'rootProperty',
125
+ enabled: '={{!$parameter["returnAll"]}}',
126
+ properties: {
127
+ property: 'data'
128
+ }
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ },
134
+ {
135
+ name: 'Add Project Placeholder',
136
+ value: 'api.projects.placeholders.post',
137
+ action: 'Add Project Placeholder',
138
+ description: '**Required scopes:** `project.placeholder` (Read and Write).\n\nAssigns a custom placeholder of the organization to the project, so Crowdin starts recognizing it in this project. `type`, `index`, `isBlocking` and `formats` apply to this project only — the placeholder definition they belong to is shared.',
139
+ routing: {
140
+ request: {
141
+ method: 'POST',
142
+ url: '=/projects/{{$parameter["projectId"]}}/placeholders'
143
+ }
144
+ }
145
+ },
146
+ {
147
+ name: 'Get Project Placeholder',
148
+ value: 'api.projects.placeholders.get',
149
+ action: 'Get Project Placeholder',
150
+ description: '**Required scopes:** `project.placeholder` (Read only).\n\nReturns one custom placeholder assigned to the project, with the settings it has here.',
151
+ routing: {
152
+ request: {
153
+ method: 'GET',
154
+ url: '=/projects/{{$parameter["projectId"]}}/placeholders/{{$parameter["projectPlaceholderId"]}}'
155
+ }
156
+ }
157
+ },
158
+ {
159
+ name: 'Delete Project Placeholder',
160
+ value: 'api.projects.placeholders.delete',
161
+ action: 'Delete Project Placeholder',
162
+ description: '**Required scopes:** `project.placeholder` (Read and Write).\n\nUnassigns a custom placeholder from the project, so Crowdin stops recognizing it here. The placeholder itself stays defined for the organization.',
163
+ routing: {
164
+ request: {
165
+ method: 'DELETE',
166
+ url: '=/projects/{{$parameter["projectId"]}}/placeholders/{{$parameter["projectPlaceholderId"]}}'
167
+ },
168
+ output: {
169
+ postReceive: [
170
+ {
171
+ type: 'set',
172
+ properties: {
173
+ value: '={{ { "success": true } }}'
174
+ }
175
+ }
176
+ ]
177
+ }
178
+ }
179
+ },
180
+ {
181
+ name: 'Edit Project Placeholder',
182
+ value: 'api.projects.placeholders.patch',
183
+ action: 'Edit Project Placeholder',
184
+ description: '**Required scopes:** `project.placeholder` (Read and Write).\n\nUpdates the settings a custom placeholder has in this project. The placeholder definition itself is not edited here, so the change reaches no other project.',
185
+ routing: {
186
+ request: {
187
+ method: 'PATCH',
188
+ url: '=/projects/{{$parameter["projectId"]}}/placeholders/{{$parameter["projectPlaceholderId"]}}'
189
+ },
190
+ send: {
191
+ preSend: [
192
+ preSend_1.transformToJsonPatch
193
+ ]
194
+ }
195
+ }
196
+ },
197
+ {
198
+ name: 'List Project System Placeholders',
199
+ value: 'api.projects.system-placeholders.getMany',
200
+ action: 'List Project System Placeholders',
201
+ description: '**Required scopes:** `project.placeholder` (Read only).\n\nReturns every placeholder Crowdin ships, with the state it has in this project. The catalogue is fixed and always comes in the same order, so `isEnabled` is the only value that changes between requests. See [Placeholders](#tag/Placeholders) for what each key matches.',
202
+ routing: {
203
+ request: {
204
+ method: 'GET',
205
+ url: '=/projects/{{$parameter["projectId"]}}/system-placeholders'
206
+ },
207
+ send: {
208
+ paginate: '={{$parameter["returnAll"]}}'
209
+ },
210
+ output: {
211
+ postReceive: [
212
+ {
213
+ type: 'rootProperty',
214
+ enabled: '={{!$parameter["returnAll"]}}',
215
+ properties: {
216
+ property: 'data'
217
+ }
218
+ }
219
+ ]
220
+ }
221
+ }
222
+ }
223
+ ],
224
+ default: 'api.custom-placeholders.getMany'
225
+ },
226
+ {
227
+ displayName: 'GET /custom-placeholders',
228
+ name: 'operation',
229
+ type: 'notice',
230
+ typeOptions: {
231
+ theme: 'info'
232
+ },
233
+ default: '',
234
+ displayOptions: {
235
+ show: {
236
+ resource: [
237
+ 'placeholders'
238
+ ],
239
+ operation: [
240
+ 'api.custom-placeholders.getMany'
241
+ ]
242
+ }
243
+ }
244
+ },
245
+ {
246
+ displayName: 'POST /custom-placeholders',
247
+ name: 'operation',
248
+ type: 'notice',
249
+ typeOptions: {
250
+ theme: 'info'
251
+ },
252
+ default: '',
253
+ displayOptions: {
254
+ show: {
255
+ resource: [
256
+ 'placeholders'
257
+ ],
258
+ operation: [
259
+ 'api.custom-placeholders.post'
260
+ ]
261
+ }
262
+ }
263
+ },
264
+ {
265
+ displayName: 'GET /custom-placeholders/{customPlaceholderId}',
266
+ name: 'operation',
267
+ type: 'notice',
268
+ typeOptions: {
269
+ theme: 'info'
270
+ },
271
+ default: '',
272
+ displayOptions: {
273
+ show: {
274
+ resource: [
275
+ 'placeholders'
276
+ ],
277
+ operation: [
278
+ 'api.custom-placeholders.get'
279
+ ]
280
+ }
281
+ }
282
+ },
283
+ {
284
+ displayName: 'DELETE /custom-placeholders/{customPlaceholderId}',
285
+ name: 'operation',
286
+ type: 'notice',
287
+ typeOptions: {
288
+ theme: 'info'
289
+ },
290
+ default: '',
291
+ displayOptions: {
292
+ show: {
293
+ resource: [
294
+ 'placeholders'
295
+ ],
296
+ operation: [
297
+ 'api.custom-placeholders.delete'
298
+ ]
299
+ }
300
+ }
301
+ },
302
+ {
303
+ displayName: 'PATCH /custom-placeholders/{customPlaceholderId}',
304
+ name: 'operation',
305
+ type: 'notice',
306
+ typeOptions: {
307
+ theme: 'info'
308
+ },
309
+ default: '',
310
+ displayOptions: {
311
+ show: {
312
+ resource: [
313
+ 'placeholders'
314
+ ],
315
+ operation: [
316
+ 'api.custom-placeholders.patch'
317
+ ]
318
+ }
319
+ }
320
+ },
321
+ {
322
+ displayName: 'GET /projects/{projectId}/placeholders',
323
+ name: 'operation',
324
+ type: 'notice',
325
+ typeOptions: {
326
+ theme: 'info'
327
+ },
328
+ default: '',
329
+ displayOptions: {
330
+ show: {
331
+ resource: [
332
+ 'placeholders'
333
+ ],
334
+ operation: [
335
+ 'api.projects.placeholders.getMany'
336
+ ]
337
+ }
338
+ }
339
+ },
340
+ {
341
+ displayName: 'POST /projects/{projectId}/placeholders',
342
+ name: 'operation',
343
+ type: 'notice',
344
+ typeOptions: {
345
+ theme: 'info'
346
+ },
347
+ default: '',
348
+ displayOptions: {
349
+ show: {
350
+ resource: [
351
+ 'placeholders'
352
+ ],
353
+ operation: [
354
+ 'api.projects.placeholders.post'
355
+ ]
356
+ }
357
+ }
358
+ },
359
+ {
360
+ displayName: 'GET /projects/{projectId}/placeholders/{projectPlaceholderId}',
361
+ name: 'operation',
362
+ type: 'notice',
363
+ typeOptions: {
364
+ theme: 'info'
365
+ },
366
+ default: '',
367
+ displayOptions: {
368
+ show: {
369
+ resource: [
370
+ 'placeholders'
371
+ ],
372
+ operation: [
373
+ 'api.projects.placeholders.get'
374
+ ]
375
+ }
376
+ }
377
+ },
378
+ {
379
+ displayName: 'DELETE /projects/{projectId}/placeholders/{projectPlaceholderId}',
380
+ name: 'operation',
381
+ type: 'notice',
382
+ typeOptions: {
383
+ theme: 'info'
384
+ },
385
+ default: '',
386
+ displayOptions: {
387
+ show: {
388
+ resource: [
389
+ 'placeholders'
390
+ ],
391
+ operation: [
392
+ 'api.projects.placeholders.delete'
393
+ ]
394
+ }
395
+ }
396
+ },
397
+ {
398
+ displayName: 'PATCH /projects/{projectId}/placeholders/{projectPlaceholderId}',
399
+ name: 'operation',
400
+ type: 'notice',
401
+ typeOptions: {
402
+ theme: 'info'
403
+ },
404
+ default: '',
405
+ displayOptions: {
406
+ show: {
407
+ resource: [
408
+ 'placeholders'
409
+ ],
410
+ operation: [
411
+ 'api.projects.placeholders.patch'
412
+ ]
413
+ }
414
+ }
415
+ },
416
+ {
417
+ displayName: 'GET /projects/{projectId}/system-placeholders',
418
+ name: 'operation',
419
+ type: 'notice',
420
+ typeOptions: {
421
+ theme: 'info'
422
+ },
423
+ default: '',
424
+ displayOptions: {
425
+ show: {
426
+ resource: [
427
+ 'placeholders'
428
+ ],
429
+ operation: [
430
+ 'api.projects.system-placeholders.getMany'
431
+ ]
432
+ }
433
+ }
434
+ },
435
+ {
436
+ displayName: 'Limit',
437
+ name: 'limit',
438
+ description: 'Max number of results to return',
439
+ default: 50,
440
+ type: 'number',
441
+ routing: {
442
+ send: {
443
+ type: 'query',
444
+ property: 'limit',
445
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
446
+ propertyInDotNotation: false
447
+ }
448
+ },
449
+ displayOptions: {
450
+ show: {
451
+ resource: [
452
+ 'placeholders'
453
+ ],
454
+ operation: [
455
+ 'api.custom-placeholders.getMany'
456
+ ],
457
+ returnAll: [
458
+ false
459
+ ]
460
+ }
461
+ },
462
+ typeOptions: {
463
+ minValue: 1
464
+ }
465
+ },
466
+ {
467
+ displayName: 'Description',
468
+ name: 'description',
469
+ type: 'string',
470
+ default: '',
471
+ description: undefined,
472
+ routing: {
473
+ send: {
474
+ property: 'description',
475
+ propertyInDotNotation: false,
476
+ type: 'body',
477
+ value: '={{ $value || undefined }}'
478
+ }
479
+ },
480
+ displayOptions: {
481
+ show: {
482
+ resource: [
483
+ 'placeholders'
484
+ ],
485
+ operation: [
486
+ 'api.custom-placeholders.post'
487
+ ]
488
+ }
489
+ },
490
+ placeholder: 'URL validation'
491
+ },
492
+ {
493
+ displayName: 'Definition',
494
+ required: true,
495
+ name: 'definition',
496
+ type: 'string',
497
+ default: '',
498
+ description: undefined,
499
+ routing: {
500
+ send: {
501
+ property: 'definition',
502
+ propertyInDotNotation: false,
503
+ type: 'body',
504
+ value: '={{ $value || undefined }}'
505
+ }
506
+ },
507
+ displayOptions: {
508
+ show: {
509
+ resource: [
510
+ 'placeholders'
511
+ ],
512
+ operation: [
513
+ 'api.custom-placeholders.post'
514
+ ]
515
+ }
516
+ },
517
+ placeholder: 'start, then "http", maybe "s", then "://", maybe "www.", anything but " ", end'
518
+ },
519
+ {
520
+ displayName: 'Argument Delimiter',
521
+ name: 'argumentDelimiter',
522
+ type: 'string',
523
+ default: '',
524
+ description: undefined,
525
+ routing: {
526
+ send: {
527
+ property: 'argumentDelimiter',
528
+ propertyInDotNotation: false,
529
+ type: 'body',
530
+ value: '={{ $value || undefined }}'
531
+ }
532
+ },
533
+ displayOptions: {
534
+ show: {
535
+ resource: [
536
+ 'placeholders'
537
+ ],
538
+ operation: [
539
+ 'api.custom-placeholders.post'
540
+ ]
541
+ }
542
+ },
543
+ placeholder: '"'
544
+ },
545
+ {
546
+ displayName: 'Custom Placeholder Id',
547
+ name: 'customPlaceholderId',
548
+ required: true,
549
+ description: 'Custom Placeholder identifier',
550
+ default: undefined,
551
+ type: 'number',
552
+ displayOptions: {
553
+ show: {
554
+ resource: [
555
+ 'placeholders'
556
+ ],
557
+ operation: [
558
+ 'api.custom-placeholders.get'
559
+ ]
560
+ }
561
+ },
562
+ placeholder: '0'
563
+ },
564
+ {
565
+ displayName: 'Custom Placeholder Id',
566
+ name: 'customPlaceholderId',
567
+ required: true,
568
+ description: 'Custom Placeholder identifier',
569
+ default: undefined,
570
+ type: 'number',
571
+ displayOptions: {
572
+ show: {
573
+ resource: [
574
+ 'placeholders'
575
+ ],
576
+ operation: [
577
+ 'api.custom-placeholders.delete'
578
+ ]
579
+ }
580
+ },
581
+ placeholder: '0'
582
+ },
583
+ {
584
+ displayName: 'Custom Placeholder Id',
585
+ name: 'customPlaceholderId',
586
+ required: true,
587
+ description: 'Custom Placeholder identifier',
588
+ default: undefined,
589
+ type: 'number',
590
+ displayOptions: {
591
+ show: {
592
+ resource: [
593
+ 'placeholders'
594
+ ],
595
+ operation: [
596
+ 'api.custom-placeholders.patch'
597
+ ]
598
+ }
599
+ },
600
+ placeholder: '0'
601
+ },
602
+ {
603
+ displayName: 'Limit',
604
+ name: 'limit',
605
+ description: 'Max number of results to return',
606
+ default: 50,
607
+ type: 'number',
608
+ routing: {
609
+ send: {
610
+ type: 'query',
611
+ property: 'limit',
612
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
613
+ propertyInDotNotation: false
614
+ }
615
+ },
616
+ displayOptions: {
617
+ show: {
618
+ resource: [
619
+ 'placeholders'
620
+ ],
621
+ operation: [
622
+ 'api.projects.placeholders.getMany'
623
+ ],
624
+ returnAll: [
625
+ false
626
+ ]
627
+ }
628
+ },
629
+ typeOptions: {
630
+ minValue: 1
631
+ }
632
+ },
633
+ {
634
+ displayName: 'Project Id',
635
+ name: 'projectId',
636
+ required: true,
637
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
638
+ default: '',
639
+ type: 'options',
640
+ displayOptions: {
641
+ show: {
642
+ resource: [
643
+ 'placeholders'
644
+ ],
645
+ operation: [
646
+ 'api.projects.placeholders.getMany'
647
+ ]
648
+ }
649
+ },
650
+ typeOptions: {
651
+ loadOptionsMethod: 'getProjects'
652
+ }
653
+ },
654
+ {
655
+ displayName: 'Project Id',
656
+ name: 'projectId',
657
+ required: true,
658
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
659
+ default: '',
660
+ type: 'options',
661
+ displayOptions: {
662
+ show: {
663
+ resource: [
664
+ 'placeholders'
665
+ ],
666
+ operation: [
667
+ 'api.projects.placeholders.post'
668
+ ]
669
+ }
670
+ },
671
+ typeOptions: {
672
+ loadOptionsMethod: 'getProjects'
673
+ }
674
+ },
675
+ {
676
+ displayName: 'Custom Placeholder Id',
677
+ required: true,
678
+ name: 'customPlaceholderId',
679
+ type: 'number',
680
+ default: undefined,
681
+ description: 'ID of the custom placeholder your organization defined',
682
+ routing: {
683
+ send: {
684
+ property: 'customPlaceholderId',
685
+ propertyInDotNotation: false,
686
+ type: 'body',
687
+ value: '={{ $value }}'
688
+ }
689
+ },
690
+ displayOptions: {
691
+ show: {
692
+ resource: [
693
+ 'placeholders'
694
+ ],
695
+ operation: [
696
+ 'api.projects.placeholders.post'
697
+ ]
698
+ }
699
+ },
700
+ placeholder: '3'
701
+ },
702
+ {
703
+ displayName: 'Type',
704
+ name: 'type',
705
+ type: 'options',
706
+ default: '',
707
+ description: 'Priority the placeholder is matched with. One of: `high`, `low`',
708
+ options: [
709
+ {
710
+ name: '-',
711
+ value: ''
712
+ },
713
+ {
714
+ name: 'high',
715
+ value: 'high'
716
+ },
717
+ {
718
+ name: 'low',
719
+ value: 'low'
720
+ }
721
+ ],
722
+ routing: {
723
+ send: {
724
+ property: 'type',
725
+ propertyInDotNotation: false,
726
+ type: 'body',
727
+ value: '={{ $value || undefined }}'
728
+ }
729
+ },
730
+ displayOptions: {
731
+ show: {
732
+ resource: [
733
+ 'placeholders'
734
+ ],
735
+ operation: [
736
+ 'api.projects.placeholders.post'
737
+ ]
738
+ }
739
+ }
740
+ },
741
+ {
742
+ displayName: 'Index',
743
+ name: 'index',
744
+ type: 'number',
745
+ default: 0,
746
+ description: 'Position of the placeholder among the ones assigned to the project',
747
+ routing: {
748
+ send: {
749
+ property: 'index',
750
+ propertyInDotNotation: false,
751
+ type: 'body',
752
+ value: '={{ $value !== 0 ? $value : undefined }}'
753
+ }
754
+ },
755
+ displayOptions: {
756
+ show: {
757
+ resource: [
758
+ 'placeholders'
759
+ ],
760
+ operation: [
761
+ 'api.projects.placeholders.post'
762
+ ]
763
+ }
764
+ },
765
+ placeholder: '1'
766
+ },
767
+ {
768
+ displayName: 'Is Blocking',
769
+ name: 'isBlocking',
770
+ type: 'boolean',
771
+ default: false,
772
+ description: 'If `true`, a mismatch of the placeholder blocks the translation from being saved',
773
+ routing: {
774
+ send: {
775
+ property: 'isBlocking',
776
+ propertyInDotNotation: false,
777
+ type: 'body',
778
+ value: '={{ $value }}'
779
+ }
780
+ },
781
+ displayOptions: {
782
+ show: {
783
+ resource: [
784
+ 'placeholders'
785
+ ],
786
+ operation: [
787
+ 'api.projects.placeholders.post'
788
+ ]
789
+ }
790
+ }
791
+ },
792
+ {
793
+ displayName: 'Formats',
794
+ name: 'formats',
795
+ type: 'fixedCollection',
796
+ default: {},
797
+ description: 'File formats the placeholder is applied to; an empty array means every format',
798
+ routing: {
799
+ send: {
800
+ property: 'formats',
801
+ propertyInDotNotation: false,
802
+ type: 'body',
803
+ value: '={{ $value.items?.map(i => i._value) || undefined }}'
804
+ }
805
+ },
806
+ displayOptions: {
807
+ show: {
808
+ resource: [
809
+ 'placeholders'
810
+ ],
811
+ operation: [
812
+ 'api.projects.placeholders.post'
813
+ ]
814
+ }
815
+ },
816
+ typeOptions: {
817
+ multipleValues: true
818
+ },
819
+ placeholder: 'Add Item',
820
+ options: [
821
+ {
822
+ displayName: 'Items',
823
+ name: 'items',
824
+ values: [
825
+ {
826
+ displayName: 'Value',
827
+ name: '_value',
828
+ type: 'string',
829
+ default: ''
830
+ }
831
+ ]
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ displayName: 'Project Id',
837
+ name: 'projectId',
838
+ required: true,
839
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
840
+ default: '',
841
+ type: 'options',
842
+ displayOptions: {
843
+ show: {
844
+ resource: [
845
+ 'placeholders'
846
+ ],
847
+ operation: [
848
+ 'api.projects.placeholders.get'
849
+ ]
850
+ }
851
+ },
852
+ typeOptions: {
853
+ loadOptionsMethod: 'getProjects'
854
+ }
855
+ },
856
+ {
857
+ displayName: 'Project Placeholder Id',
858
+ name: 'projectPlaceholderId',
859
+ required: true,
860
+ description: 'Project Placeholder identifier',
861
+ default: undefined,
862
+ type: 'number',
863
+ displayOptions: {
864
+ show: {
865
+ resource: [
866
+ 'placeholders'
867
+ ],
868
+ operation: [
869
+ 'api.projects.placeholders.get'
870
+ ]
871
+ }
872
+ },
873
+ placeholder: '0'
874
+ },
875
+ {
876
+ displayName: 'Project Id',
877
+ name: 'projectId',
878
+ required: true,
879
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
880
+ default: '',
881
+ type: 'options',
882
+ displayOptions: {
883
+ show: {
884
+ resource: [
885
+ 'placeholders'
886
+ ],
887
+ operation: [
888
+ 'api.projects.placeholders.delete'
889
+ ]
890
+ }
891
+ },
892
+ typeOptions: {
893
+ loadOptionsMethod: 'getProjects'
894
+ }
895
+ },
896
+ {
897
+ displayName: 'Project Placeholder Id',
898
+ name: 'projectPlaceholderId',
899
+ required: true,
900
+ description: 'Project Placeholder identifier',
901
+ default: undefined,
902
+ type: 'number',
903
+ displayOptions: {
904
+ show: {
905
+ resource: [
906
+ 'placeholders'
907
+ ],
908
+ operation: [
909
+ 'api.projects.placeholders.delete'
910
+ ]
911
+ }
912
+ },
913
+ placeholder: '0'
914
+ },
915
+ {
916
+ displayName: 'Project Id',
917
+ name: 'projectId',
918
+ required: true,
919
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
920
+ default: '',
921
+ type: 'options',
922
+ displayOptions: {
923
+ show: {
924
+ resource: [
925
+ 'placeholders'
926
+ ],
927
+ operation: [
928
+ 'api.projects.placeholders.patch'
929
+ ]
930
+ }
931
+ },
932
+ typeOptions: {
933
+ loadOptionsMethod: 'getProjects'
934
+ }
935
+ },
936
+ {
937
+ displayName: 'Project Placeholder Id',
938
+ name: 'projectPlaceholderId',
939
+ required: true,
940
+ description: 'Project Placeholder identifier',
941
+ default: undefined,
942
+ type: 'number',
943
+ displayOptions: {
944
+ show: {
945
+ resource: [
946
+ 'placeholders'
947
+ ],
948
+ operation: [
949
+ 'api.projects.placeholders.patch'
950
+ ]
951
+ }
952
+ },
953
+ placeholder: '0'
954
+ },
955
+ {
956
+ displayName: 'Limit',
957
+ name: 'limit',
958
+ description: 'Max number of results to return',
959
+ default: 50,
960
+ type: 'number',
961
+ routing: {
962
+ send: {
963
+ type: 'query',
964
+ property: 'limit',
965
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
966
+ propertyInDotNotation: false
967
+ }
968
+ },
969
+ displayOptions: {
970
+ show: {
971
+ resource: [
972
+ 'placeholders'
973
+ ],
974
+ operation: [
975
+ 'api.projects.system-placeholders.getMany'
976
+ ],
977
+ returnAll: [
978
+ false
979
+ ]
980
+ }
981
+ },
982
+ typeOptions: {
983
+ minValue: 1
984
+ }
985
+ },
986
+ {
987
+ displayName: 'Project Id',
988
+ name: 'projectId',
989
+ required: true,
990
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
991
+ default: '',
992
+ type: 'options',
993
+ displayOptions: {
994
+ show: {
995
+ resource: [
996
+ 'placeholders'
997
+ ],
998
+ operation: [
999
+ 'api.projects.system-placeholders.getMany'
1000
+ ]
1001
+ }
1002
+ },
1003
+ typeOptions: {
1004
+ loadOptionsMethod: 'getProjects'
1005
+ }
1006
+ },
1007
+ {
1008
+ displayName: 'Update Fields',
1009
+ name: 'updateFields',
1010
+ type: 'collection',
1011
+ placeholder: 'Add Field',
1012
+ default: {},
1013
+ displayOptions: {
1014
+ show: {
1015
+ resource: [
1016
+ 'placeholders'
1017
+ ],
1018
+ operation: [
1019
+ 'api.custom-placeholders.patch'
1020
+ ]
1021
+ }
1022
+ },
1023
+ options: [
1024
+ {
1025
+ displayName: 'Description',
1026
+ name: 'description',
1027
+ type: 'string',
1028
+ default: '',
1029
+ description: 'Value for /description',
1030
+ placeholder: 'URL validation'
1031
+ },
1032
+ {
1033
+ displayName: 'Definition',
1034
+ name: 'definition',
1035
+ type: 'string',
1036
+ default: '',
1037
+ description: 'Value for /definition',
1038
+ placeholder: 'start, then "http", maybe "s", then "://", maybe "www.", anything but " ", end'
1039
+ },
1040
+ {
1041
+ displayName: 'Argument Delimiter',
1042
+ name: 'argumentDelimiter',
1043
+ type: 'string',
1044
+ default: '',
1045
+ description: 'Value for /argumentDelimiter',
1046
+ placeholder: '"'
1047
+ }
1048
+ ],
1049
+ routing: {
1050
+ send: {
1051
+ type: 'body',
1052
+ value: '={{ $value }}'
1053
+ }
1054
+ }
1055
+ },
1056
+ {
1057
+ displayName: 'Update Fields',
1058
+ name: 'updateFields',
1059
+ type: 'collection',
1060
+ placeholder: 'Add Field',
1061
+ default: {},
1062
+ displayOptions: {
1063
+ show: {
1064
+ resource: [
1065
+ 'placeholders'
1066
+ ],
1067
+ operation: [
1068
+ 'api.projects.placeholders.patch'
1069
+ ]
1070
+ }
1071
+ },
1072
+ options: [
1073
+ {
1074
+ displayName: 'Index',
1075
+ name: 'index',
1076
+ type: 'number',
1077
+ default: 0,
1078
+ description: 'Position of the placeholder among the ones assigned to the project',
1079
+ placeholder: '1'
1080
+ },
1081
+ {
1082
+ displayName: 'Type',
1083
+ name: 'type',
1084
+ type: 'options',
1085
+ default: '',
1086
+ description: 'Priority the placeholder is matched with. One of: `high`, `low`',
1087
+ options: [
1088
+ {
1089
+ name: '-',
1090
+ value: ''
1091
+ },
1092
+ {
1093
+ name: 'high',
1094
+ value: 'high'
1095
+ },
1096
+ {
1097
+ name: 'low',
1098
+ value: 'low'
1099
+ }
1100
+ ]
1101
+ },
1102
+ {
1103
+ displayName: 'Is Blocking',
1104
+ name: 'isBlocking',
1105
+ type: 'boolean',
1106
+ default: false,
1107
+ description: 'If `true`, a mismatch of the placeholder blocks the translation from being saved'
1108
+ },
1109
+ {
1110
+ displayName: 'Formats',
1111
+ name: 'formats',
1112
+ type: 'fixedCollection',
1113
+ default: {},
1114
+ description: 'File formats the placeholder is applied to; an empty array means every format',
1115
+ typeOptions: {
1116
+ multipleValues: true
1117
+ },
1118
+ placeholder: 'Add Item',
1119
+ options: [
1120
+ {
1121
+ name: 'items',
1122
+ displayName: 'Items',
1123
+ values: [
1124
+ {
1125
+ displayName: 'Value',
1126
+ name: '_value',
1127
+ type: 'string',
1128
+ default: ''
1129
+ }
1130
+ ]
1131
+ }
1132
+ ]
1133
+ }
1134
+ ],
1135
+ routing: {
1136
+ send: {
1137
+ type: 'body',
1138
+ value: '={{ $value }}'
1139
+ }
1140
+ }
1141
+ },
1142
+ {
1143
+ displayName: 'Return All',
1144
+ name: 'returnAll',
1145
+ type: 'boolean',
1146
+ default: true,
1147
+ description: 'Whether to return all results or only up to a given limit',
1148
+ displayOptions: {
1149
+ show: {
1150
+ resource: [
1151
+ 'placeholders'
1152
+ ],
1153
+ operation: [
1154
+ 'api.custom-placeholders.getMany'
1155
+ ]
1156
+ }
1157
+ }
1158
+ },
1159
+ {
1160
+ displayName: 'Return All',
1161
+ name: 'returnAll',
1162
+ type: 'boolean',
1163
+ default: true,
1164
+ description: 'Whether to return all results or only up to a given limit',
1165
+ displayOptions: {
1166
+ show: {
1167
+ resource: [
1168
+ 'placeholders'
1169
+ ],
1170
+ operation: [
1171
+ 'api.projects.placeholders.getMany'
1172
+ ]
1173
+ }
1174
+ }
1175
+ },
1176
+ {
1177
+ displayName: 'Return All',
1178
+ name: 'returnAll',
1179
+ type: 'boolean',
1180
+ default: true,
1181
+ description: 'Whether to return all results or only up to a given limit',
1182
+ displayOptions: {
1183
+ show: {
1184
+ resource: [
1185
+ 'placeholders'
1186
+ ],
1187
+ operation: [
1188
+ 'api.projects.system-placeholders.getMany'
1189
+ ]
1190
+ }
1191
+ }
1192
+ }
1193
+ ];
1194
+ //# sourceMappingURL=placeholders.js.map