@crowdin/n8n-nodes-crowdin 0.30.0 → 0.31.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.
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +62 -16
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.d.ts +2 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.js +1243 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.js.map +1 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js +8 -3
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +8 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js +9 -6
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/organizationWebhooks.js +770 -81
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/organizationWebhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +55 -14
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js +7 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js +35 -7
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js +652 -11
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js +21 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js +4 -3
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationStatus.js +94 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationStatus.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +1163 -30
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/users.js +678 -2
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/users.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js +909 -93
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +62 -16
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js +2 -2
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.d.ts +2 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.js +1243 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.js.map +1 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js +8 -3
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +8 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/organizationWebhooks.js +770 -81
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/organizationWebhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +55 -14
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js +7 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js +579 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js +21 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js +4 -3
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationStatus.js +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationStatus.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +1101 -30
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/users.js +678 -2
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/users.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js +909 -93
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +63 -21
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js +7 -2
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js +9 -6
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/organizationWebhooks.js +770 -81
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/organizationWebhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +51 -6
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +35 -7
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js +652 -11
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js +3 -2
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationStatus.js +94 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationStatus.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +1163 -30
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/users.js +7 -0
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/users.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js +909 -93
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +63 -21
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js +2 -2
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js +7 -2
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/organizationWebhooks.js +770 -81
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/organizationWebhooks.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +51 -6
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js +579 -0
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js +3 -2
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationStatus.js +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationStatus.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +1101 -30
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/users.js +7 -0
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/users.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js +909 -93
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js.map +1 -1
- package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js +25 -0
- package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js.map +1 -1
- package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js +25 -0
- package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js.map +1 -1
- package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js +25 -0
- package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js.map +1 -1
- package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js +25 -0
- package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -113,6 +113,68 @@ exports.sourceStringsProperties = [
|
|
|
113
113
|
]
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Replace Text in Source Strings',
|
|
119
|
+
value: 'api.projects.strings.replacements.post',
|
|
120
|
+
action: 'Replace Text in Source Strings',
|
|
121
|
+
description: '**Required scopes:** `project.source.string` (Read and Write).\n\nFinds a text in the project source strings and replaces it, as an [asynchronous operation](#section/Introduction/Asynchronous-Operations). Start with `dryRun` set to `true`, review the result via [Get String Replacement Summary](#operation/api.projects.strings.replacements.summary.get) and [List String Replacement Matches](#operation/api.projects.strings.replacements.matches.getMany), then run the replacement for real, optionally passing the chosen `stringIds`. Protected strings and strings of files that cannot be edited online are skipped and counted in the summary.\n\n__Note:__ Only one source string replacement that is not a dry run can run in a project at a time, and a replacement can match up to 10000 strings',
|
|
122
|
+
routing: {
|
|
123
|
+
request: {
|
|
124
|
+
method: 'POST',
|
|
125
|
+
url: '=/projects/{{$parameter["projectId"]}}/strings/replacements'
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'Get String Replacement Status',
|
|
131
|
+
value: 'api.projects.strings.replacements.get',
|
|
132
|
+
action: 'Get String Replacement Status',
|
|
133
|
+
description: '**Required scopes:** `project.source.string` (Read only).\n\nReturns the status and progress of a source string replacement started via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post).',
|
|
134
|
+
routing: {
|
|
135
|
+
request: {
|
|
136
|
+
method: 'GET',
|
|
137
|
+
url: '=/projects/{{$parameter["projectId"]}}/strings/replacements/{{$parameter["replacementId"]}}'
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'List String Replacement Matches',
|
|
143
|
+
value: 'api.projects.strings.replacements.matches.getMany',
|
|
144
|
+
action: 'List String Replacement Matches',
|
|
145
|
+
description: '**Required scopes:** `project.source.string` (Read only).\n\nReturns the strings of a source string replacement, sorted by string ID. For a dry run, lists the strings a real run would change, each with its current text and the text the replacement would produce from it. For a real run, lists the strings that were changed, each with its current text. Skipped strings are not listed, and neither are strings deleted since the replacement, so a page can hold fewer items than `limit`.\n\n__Note:__ Matches are available as long as the replacement exists',
|
|
146
|
+
routing: {
|
|
147
|
+
request: {
|
|
148
|
+
method: 'GET',
|
|
149
|
+
url: '=/projects/{{$parameter["projectId"]}}/strings/replacements/{{$parameter["replacementId"]}}/matches'
|
|
150
|
+
},
|
|
151
|
+
send: {
|
|
152
|
+
paginate: '={{$parameter["returnAll"]}}'
|
|
153
|
+
},
|
|
154
|
+
output: {
|
|
155
|
+
postReceive: [
|
|
156
|
+
{
|
|
157
|
+
type: 'rootProperty',
|
|
158
|
+
enabled: '={{!$parameter["returnAll"]}}',
|
|
159
|
+
properties: {
|
|
160
|
+
property: 'data'
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'Get String Replacement Summary',
|
|
169
|
+
value: 'api.projects.strings.replacements.summary.get',
|
|
170
|
+
action: 'Get String Replacement Summary',
|
|
171
|
+
description: '**Required scopes:** `project.source.string` (Read only).\n\nReturns the counters of a source string replacement: how many strings matched, how many were changed and how many were skipped, and why. Every matched string is either changed or skipped.\n\n__Note:__ The counters are final once the replacement status is `finished`',
|
|
172
|
+
routing: {
|
|
173
|
+
request: {
|
|
174
|
+
method: 'GET',
|
|
175
|
+
url: '=/projects/{{$parameter["projectId"]}}/strings/replacements/{{$parameter["replacementId"]}}/summary'
|
|
176
|
+
}
|
|
177
|
+
}
|
|
116
178
|
}
|
|
117
179
|
],
|
|
118
180
|
default: 'api.projects.strings.getMany'
|
|
@@ -212,6 +274,82 @@ exports.sourceStringsProperties = [
|
|
|
212
274
|
}
|
|
213
275
|
}
|
|
214
276
|
},
|
|
277
|
+
{
|
|
278
|
+
displayName: 'POST /projects/{projectId}/strings/replacements',
|
|
279
|
+
name: 'operation',
|
|
280
|
+
type: 'notice',
|
|
281
|
+
typeOptions: {
|
|
282
|
+
theme: 'info'
|
|
283
|
+
},
|
|
284
|
+
default: '',
|
|
285
|
+
displayOptions: {
|
|
286
|
+
show: {
|
|
287
|
+
resource: [
|
|
288
|
+
'sourceStrings'
|
|
289
|
+
],
|
|
290
|
+
operation: [
|
|
291
|
+
'api.projects.strings.replacements.post'
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
displayName: 'GET /projects/{projectId}/strings/replacements/{replacementId}',
|
|
298
|
+
name: 'operation',
|
|
299
|
+
type: 'notice',
|
|
300
|
+
typeOptions: {
|
|
301
|
+
theme: 'info'
|
|
302
|
+
},
|
|
303
|
+
default: '',
|
|
304
|
+
displayOptions: {
|
|
305
|
+
show: {
|
|
306
|
+
resource: [
|
|
307
|
+
'sourceStrings'
|
|
308
|
+
],
|
|
309
|
+
operation: [
|
|
310
|
+
'api.projects.strings.replacements.get'
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
displayName: 'GET /projects/{projectId}/strings/replacements/{replacementId}/matches',
|
|
317
|
+
name: 'operation',
|
|
318
|
+
type: 'notice',
|
|
319
|
+
typeOptions: {
|
|
320
|
+
theme: 'info'
|
|
321
|
+
},
|
|
322
|
+
default: '',
|
|
323
|
+
displayOptions: {
|
|
324
|
+
show: {
|
|
325
|
+
resource: [
|
|
326
|
+
'sourceStrings'
|
|
327
|
+
],
|
|
328
|
+
operation: [
|
|
329
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
displayName: 'GET /projects/{projectId}/strings/replacements/{replacementId}/summary',
|
|
336
|
+
name: 'operation',
|
|
337
|
+
type: 'notice',
|
|
338
|
+
typeOptions: {
|
|
339
|
+
theme: 'info'
|
|
340
|
+
},
|
|
341
|
+
default: '',
|
|
342
|
+
displayOptions: {
|
|
343
|
+
show: {
|
|
344
|
+
resource: [
|
|
345
|
+
'sourceStrings'
|
|
346
|
+
],
|
|
347
|
+
operation: [
|
|
348
|
+
'api.projects.strings.replacements.summary.get'
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
215
353
|
{
|
|
216
354
|
displayName: 'Project Id',
|
|
217
355
|
name: 'projectId',
|
|
@@ -1105,35 +1243,538 @@ exports.sourceStringsProperties = [
|
|
|
1105
1243
|
}
|
|
1106
1244
|
},
|
|
1107
1245
|
{
|
|
1108
|
-
displayName: '
|
|
1109
|
-
name: '
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1246
|
+
displayName: 'Project Id',
|
|
1247
|
+
name: 'projectId',
|
|
1248
|
+
required: true,
|
|
1249
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1250
|
+
default: '',
|
|
1251
|
+
type: 'options',
|
|
1113
1252
|
displayOptions: {
|
|
1114
1253
|
show: {
|
|
1115
1254
|
resource: [
|
|
1116
1255
|
'sourceStrings'
|
|
1117
1256
|
],
|
|
1118
1257
|
operation: [
|
|
1119
|
-
'api.projects.strings.
|
|
1258
|
+
'api.projects.strings.replacements.post'
|
|
1120
1259
|
]
|
|
1121
1260
|
}
|
|
1261
|
+
},
|
|
1262
|
+
typeOptions: {
|
|
1263
|
+
loadOptionsMethod: 'getProjects'
|
|
1122
1264
|
}
|
|
1123
1265
|
},
|
|
1124
1266
|
{
|
|
1125
|
-
displayName: '
|
|
1126
|
-
|
|
1267
|
+
displayName: 'Text',
|
|
1268
|
+
required: true,
|
|
1269
|
+
name: 'text',
|
|
1270
|
+
type: 'string',
|
|
1271
|
+
default: '',
|
|
1272
|
+
description: 'Text to find in the source strings, 1 to 128 characters. Matched literally, without regular expressions\n\n__Note:__ In plural strings, only the main form is searched. On a match, file-based projects get the text replaced in every form, string-based projects in the main form only',
|
|
1273
|
+
routing: {
|
|
1274
|
+
send: {
|
|
1275
|
+
property: 'text',
|
|
1276
|
+
propertyInDotNotation: false,
|
|
1277
|
+
type: 'body',
|
|
1278
|
+
value: '={{ $value || undefined }}'
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
displayOptions: {
|
|
1282
|
+
show: {
|
|
1283
|
+
resource: [
|
|
1284
|
+
'sourceStrings'
|
|
1285
|
+
],
|
|
1286
|
+
operation: [
|
|
1287
|
+
'api.projects.strings.replacements.post'
|
|
1288
|
+
]
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
placeholder: 'Workspace'
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
displayName: 'Replace With',
|
|
1295
|
+
required: true,
|
|
1296
|
+
name: 'replaceWith',
|
|
1297
|
+
type: 'string',
|
|
1298
|
+
default: '',
|
|
1299
|
+
description: 'Text that replaces every match, up to 10000 characters. Inserted literally: `$1` or `\\0` stay as typed. An empty string removes the matches',
|
|
1300
|
+
routing: {
|
|
1301
|
+
send: {
|
|
1302
|
+
property: 'replaceWith',
|
|
1303
|
+
propertyInDotNotation: false,
|
|
1304
|
+
type: 'body',
|
|
1305
|
+
value: '={{ $value || undefined }}'
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
displayOptions: {
|
|
1309
|
+
show: {
|
|
1310
|
+
resource: [
|
|
1311
|
+
'sourceStrings'
|
|
1312
|
+
],
|
|
1313
|
+
operation: [
|
|
1314
|
+
'api.projects.strings.replacements.post'
|
|
1315
|
+
]
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
placeholder: 'Space'
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
displayName: 'Match Mode',
|
|
1322
|
+
name: 'matchMode',
|
|
1323
|
+
type: 'options',
|
|
1324
|
+
default: '',
|
|
1325
|
+
description: 'How `text` is matched. One of: `phrase` finds the whole phrase anywhere in a string, `allWords` finds strings that contain every word of `text` and replaces each of these words, `entireText` finds strings whose whole text equals `text`. Default is `phrase`',
|
|
1326
|
+
options: [
|
|
1327
|
+
{
|
|
1328
|
+
name: '-',
|
|
1329
|
+
value: ''
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
name: 'phrase',
|
|
1333
|
+
value: 'phrase'
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
name: 'allWords',
|
|
1337
|
+
value: 'allWords'
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
name: 'entireText',
|
|
1341
|
+
value: 'entireText'
|
|
1342
|
+
}
|
|
1343
|
+
],
|
|
1344
|
+
routing: {
|
|
1345
|
+
send: {
|
|
1346
|
+
property: 'matchMode',
|
|
1347
|
+
propertyInDotNotation: false,
|
|
1348
|
+
type: 'body',
|
|
1349
|
+
value: '={{ $value || undefined }}'
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
displayOptions: {
|
|
1353
|
+
show: {
|
|
1354
|
+
resource: [
|
|
1355
|
+
'sourceStrings'
|
|
1356
|
+
],
|
|
1357
|
+
operation: [
|
|
1358
|
+
'api.projects.strings.replacements.post'
|
|
1359
|
+
]
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
displayName: 'Case Sensitive',
|
|
1365
|
+
name: 'caseSensitive',
|
|
1127
1366
|
type: 'boolean',
|
|
1128
|
-
default:
|
|
1129
|
-
description: '
|
|
1367
|
+
default: false,
|
|
1368
|
+
description: 'If `true`, the letter case of `text` must match. Default is `false`',
|
|
1369
|
+
routing: {
|
|
1370
|
+
send: {
|
|
1371
|
+
property: 'caseSensitive',
|
|
1372
|
+
propertyInDotNotation: false,
|
|
1373
|
+
type: 'body',
|
|
1374
|
+
value: '={{ $value }}'
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1130
1377
|
displayOptions: {
|
|
1131
1378
|
show: {
|
|
1132
1379
|
resource: [
|
|
1133
1380
|
'sourceStrings'
|
|
1134
1381
|
],
|
|
1135
1382
|
operation: [
|
|
1136
|
-
'api.strings.
|
|
1383
|
+
'api.projects.strings.replacements.post'
|
|
1384
|
+
]
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
displayName: 'File Ids',
|
|
1390
|
+
name: 'fileIds',
|
|
1391
|
+
type: 'multiOptions',
|
|
1392
|
+
default: [],
|
|
1393
|
+
description: 'Limit the replacement to the strings of the given files. Get via [List Files](#operation/api.projects.files.getMany). All project files by default\n\n__Note:__ Can\'t be used with `directoryIds` or `branchIds` in the same request',
|
|
1394
|
+
routing: {
|
|
1395
|
+
send: {
|
|
1396
|
+
property: 'fileIds',
|
|
1397
|
+
propertyInDotNotation: false,
|
|
1398
|
+
type: 'body',
|
|
1399
|
+
value: '={{ $value }}'
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
displayOptions: {
|
|
1403
|
+
show: {
|
|
1404
|
+
resource: [
|
|
1405
|
+
'sourceStrings'
|
|
1406
|
+
],
|
|
1407
|
+
operation: [
|
|
1408
|
+
'api.projects.strings.replacements.post'
|
|
1409
|
+
]
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
typeOptions: {
|
|
1413
|
+
loadOptionsMethod: 'getProjectFilesMulti',
|
|
1414
|
+
loadOptionsDependsOn: [
|
|
1415
|
+
'projectId'
|
|
1416
|
+
]
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
displayName: 'Directory Ids',
|
|
1421
|
+
name: 'directoryIds',
|
|
1422
|
+
type: 'multiOptions',
|
|
1423
|
+
default: [],
|
|
1424
|
+
description: 'Limit the replacement to the strings of the files in the given directories, nested directories included. Get via [List Directories](#operation/api.projects.directories.getMany)\n\n__Note:__ Can\'t be used with `fileIds` or `branchIds` in the same request',
|
|
1425
|
+
routing: {
|
|
1426
|
+
send: {
|
|
1427
|
+
property: 'directoryIds',
|
|
1428
|
+
propertyInDotNotation: false,
|
|
1429
|
+
type: 'body',
|
|
1430
|
+
value: '={{ $value }}'
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
displayOptions: {
|
|
1434
|
+
show: {
|
|
1435
|
+
resource: [
|
|
1436
|
+
'sourceStrings'
|
|
1437
|
+
],
|
|
1438
|
+
operation: [
|
|
1439
|
+
'api.projects.strings.replacements.post'
|
|
1440
|
+
]
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
typeOptions: {
|
|
1444
|
+
loadOptionsMethod: 'getProjectDirectoriesMulti',
|
|
1445
|
+
loadOptionsDependsOn: [
|
|
1446
|
+
'projectId'
|
|
1447
|
+
]
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
displayName: 'Branch Ids',
|
|
1452
|
+
name: 'branchIds',
|
|
1453
|
+
type: 'multiOptions',
|
|
1454
|
+
default: [],
|
|
1455
|
+
description: 'Limit the replacement to the strings of the files in the given branches. Get via [List Branches](#operation/api.projects.branches.getMany)\n\n__Note:__ Can\'t be used with `fileIds` or `directoryIds` in the same request',
|
|
1456
|
+
routing: {
|
|
1457
|
+
send: {
|
|
1458
|
+
property: 'branchIds',
|
|
1459
|
+
propertyInDotNotation: false,
|
|
1460
|
+
type: 'body',
|
|
1461
|
+
value: '={{ $value }}'
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
displayOptions: {
|
|
1465
|
+
show: {
|
|
1466
|
+
resource: [
|
|
1467
|
+
'sourceStrings'
|
|
1468
|
+
],
|
|
1469
|
+
operation: [
|
|
1470
|
+
'api.projects.strings.replacements.post'
|
|
1471
|
+
]
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
typeOptions: {
|
|
1475
|
+
loadOptionsMethod: 'getBranchesMulti',
|
|
1476
|
+
loadOptionsDependsOn: [
|
|
1477
|
+
'projectId'
|
|
1478
|
+
]
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
displayName: 'String Ids',
|
|
1483
|
+
name: 'stringIds',
|
|
1484
|
+
type: 'multiOptions',
|
|
1485
|
+
default: [],
|
|
1486
|
+
description: 'Limit the replacement to the given strings, for example to the matches of a dry run that should really be replaced. Get via [List String Replacement Matches](#operation/api.projects.strings.replacements.matches.getMany). Up to 10000 IDs',
|
|
1487
|
+
routing: {
|
|
1488
|
+
send: {
|
|
1489
|
+
property: 'stringIds',
|
|
1490
|
+
propertyInDotNotation: false,
|
|
1491
|
+
type: 'body',
|
|
1492
|
+
value: '={{ $value }}'
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
displayOptions: {
|
|
1496
|
+
show: {
|
|
1497
|
+
resource: [
|
|
1498
|
+
'sourceStrings'
|
|
1499
|
+
],
|
|
1500
|
+
operation: [
|
|
1501
|
+
'api.projects.strings.replacements.post'
|
|
1502
|
+
]
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
typeOptions: {
|
|
1506
|
+
loadOptionsMethod: 'getProjectStringsMulti',
|
|
1507
|
+
loadOptionsDependsOn: [
|
|
1508
|
+
'projectId'
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
displayName: 'Update Option',
|
|
1514
|
+
name: 'updateOption',
|
|
1515
|
+
type: 'options',
|
|
1516
|
+
default: '',
|
|
1517
|
+
description: 'What happens to the translations of the changed strings. One of: `keep_translations_and_approvals`, `keep_translations` (approvals are removed), `clear_translations_and_approvals`. Default is `keep_translations_and_approvals`',
|
|
1518
|
+
options: [
|
|
1519
|
+
{
|
|
1520
|
+
name: '-',
|
|
1521
|
+
value: ''
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
name: 'keep_translations_and_approvals',
|
|
1525
|
+
value: 'keep_translations_and_approvals'
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
name: 'keep_translations',
|
|
1529
|
+
value: 'keep_translations'
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
name: 'clear_translations_and_approvals',
|
|
1533
|
+
value: 'clear_translations_and_approvals'
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
routing: {
|
|
1537
|
+
send: {
|
|
1538
|
+
property: 'updateOption',
|
|
1539
|
+
propertyInDotNotation: false,
|
|
1540
|
+
type: 'body',
|
|
1541
|
+
value: '={{ $value || undefined }}'
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
displayOptions: {
|
|
1545
|
+
show: {
|
|
1546
|
+
resource: [
|
|
1547
|
+
'sourceStrings'
|
|
1548
|
+
],
|
|
1549
|
+
operation: [
|
|
1550
|
+
'api.projects.strings.replacements.post'
|
|
1551
|
+
]
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
displayName: 'Dry Run',
|
|
1557
|
+
name: 'dryRun',
|
|
1558
|
+
type: 'boolean',
|
|
1559
|
+
default: false,
|
|
1560
|
+
description: 'If `true`, the matches are found and listed, but no string is changed. Default is `false`',
|
|
1561
|
+
routing: {
|
|
1562
|
+
send: {
|
|
1563
|
+
property: 'dryRun',
|
|
1564
|
+
propertyInDotNotation: false,
|
|
1565
|
+
type: 'body',
|
|
1566
|
+
value: '={{ $value }}'
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
displayOptions: {
|
|
1570
|
+
show: {
|
|
1571
|
+
resource: [
|
|
1572
|
+
'sourceStrings'
|
|
1573
|
+
],
|
|
1574
|
+
operation: [
|
|
1575
|
+
'api.projects.strings.replacements.post'
|
|
1576
|
+
]
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
displayName: 'Project Id',
|
|
1582
|
+
name: 'projectId',
|
|
1583
|
+
required: true,
|
|
1584
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1585
|
+
default: '',
|
|
1586
|
+
type: 'options',
|
|
1587
|
+
displayOptions: {
|
|
1588
|
+
show: {
|
|
1589
|
+
resource: [
|
|
1590
|
+
'sourceStrings'
|
|
1591
|
+
],
|
|
1592
|
+
operation: [
|
|
1593
|
+
'api.projects.strings.replacements.get'
|
|
1594
|
+
]
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
typeOptions: {
|
|
1598
|
+
loadOptionsMethod: 'getProjects'
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
displayName: 'Replacement Id',
|
|
1603
|
+
name: 'replacementId',
|
|
1604
|
+
required: true,
|
|
1605
|
+
description: 'ID of the source string replacement. Get via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post)',
|
|
1606
|
+
default: '',
|
|
1607
|
+
type: 'string',
|
|
1608
|
+
displayOptions: {
|
|
1609
|
+
show: {
|
|
1610
|
+
resource: [
|
|
1611
|
+
'sourceStrings'
|
|
1612
|
+
],
|
|
1613
|
+
operation: [
|
|
1614
|
+
'api.projects.strings.replacements.get'
|
|
1615
|
+
]
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
placeholder: '50fb3506-4127-4ba8-8296-f97dc7e3e0c3'
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
displayName: 'Project Id',
|
|
1622
|
+
name: 'projectId',
|
|
1623
|
+
required: true,
|
|
1624
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1625
|
+
default: '',
|
|
1626
|
+
type: 'options',
|
|
1627
|
+
displayOptions: {
|
|
1628
|
+
show: {
|
|
1629
|
+
resource: [
|
|
1630
|
+
'sourceStrings'
|
|
1631
|
+
],
|
|
1632
|
+
operation: [
|
|
1633
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1634
|
+
]
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
typeOptions: {
|
|
1638
|
+
loadOptionsMethod: 'getProjects'
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
displayName: 'Replacement Id',
|
|
1643
|
+
name: 'replacementId',
|
|
1644
|
+
required: true,
|
|
1645
|
+
description: 'ID of the source string replacement. Get via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post)',
|
|
1646
|
+
default: '',
|
|
1647
|
+
type: 'string',
|
|
1648
|
+
displayOptions: {
|
|
1649
|
+
show: {
|
|
1650
|
+
resource: [
|
|
1651
|
+
'sourceStrings'
|
|
1652
|
+
],
|
|
1653
|
+
operation: [
|
|
1654
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1655
|
+
]
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
placeholder: '50fb3506-4127-4ba8-8296-f97dc7e3e0c3'
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
displayName: 'Limit',
|
|
1662
|
+
name: 'limit',
|
|
1663
|
+
description: 'Max number of results to return',
|
|
1664
|
+
default: 50,
|
|
1665
|
+
type: 'number',
|
|
1666
|
+
routing: {
|
|
1667
|
+
send: {
|
|
1668
|
+
type: 'query',
|
|
1669
|
+
property: 'limit',
|
|
1670
|
+
value: '={{ typeof $value === \'number\' ? $value : undefined }}',
|
|
1671
|
+
propertyInDotNotation: false
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
displayOptions: {
|
|
1675
|
+
show: {
|
|
1676
|
+
resource: [
|
|
1677
|
+
'sourceStrings'
|
|
1678
|
+
],
|
|
1679
|
+
operation: [
|
|
1680
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1681
|
+
],
|
|
1682
|
+
returnAll: [
|
|
1683
|
+
false
|
|
1684
|
+
]
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
typeOptions: {
|
|
1688
|
+
minValue: 1
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
displayName: 'Project Id',
|
|
1693
|
+
name: 'projectId',
|
|
1694
|
+
required: true,
|
|
1695
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1696
|
+
default: '',
|
|
1697
|
+
type: 'options',
|
|
1698
|
+
displayOptions: {
|
|
1699
|
+
show: {
|
|
1700
|
+
resource: [
|
|
1701
|
+
'sourceStrings'
|
|
1702
|
+
],
|
|
1703
|
+
operation: [
|
|
1704
|
+
'api.projects.strings.replacements.summary.get'
|
|
1705
|
+
]
|
|
1706
|
+
}
|
|
1707
|
+
},
|
|
1708
|
+
typeOptions: {
|
|
1709
|
+
loadOptionsMethod: 'getProjects'
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
displayName: 'Replacement Id',
|
|
1714
|
+
name: 'replacementId',
|
|
1715
|
+
required: true,
|
|
1716
|
+
description: 'ID of the source string replacement. Get via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post)',
|
|
1717
|
+
default: '',
|
|
1718
|
+
type: 'string',
|
|
1719
|
+
displayOptions: {
|
|
1720
|
+
show: {
|
|
1721
|
+
resource: [
|
|
1722
|
+
'sourceStrings'
|
|
1723
|
+
],
|
|
1724
|
+
operation: [
|
|
1725
|
+
'api.projects.strings.replacements.summary.get'
|
|
1726
|
+
]
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
placeholder: '50fb3506-4127-4ba8-8296-f97dc7e3e0c3'
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
displayName: 'Return All',
|
|
1733
|
+
name: 'returnAll',
|
|
1734
|
+
type: 'boolean',
|
|
1735
|
+
default: true,
|
|
1736
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1737
|
+
displayOptions: {
|
|
1738
|
+
show: {
|
|
1739
|
+
resource: [
|
|
1740
|
+
'sourceStrings'
|
|
1741
|
+
],
|
|
1742
|
+
operation: [
|
|
1743
|
+
'api.projects.strings.getMany'
|
|
1744
|
+
]
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
displayName: 'Return All',
|
|
1750
|
+
name: 'returnAll',
|
|
1751
|
+
type: 'boolean',
|
|
1752
|
+
default: true,
|
|
1753
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1754
|
+
displayOptions: {
|
|
1755
|
+
show: {
|
|
1756
|
+
resource: [
|
|
1757
|
+
'sourceStrings'
|
|
1758
|
+
],
|
|
1759
|
+
operation: [
|
|
1760
|
+
'api.strings.getMany'
|
|
1761
|
+
]
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
displayName: 'Return All',
|
|
1767
|
+
name: 'returnAll',
|
|
1768
|
+
type: 'boolean',
|
|
1769
|
+
default: true,
|
|
1770
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1771
|
+
displayOptions: {
|
|
1772
|
+
show: {
|
|
1773
|
+
resource: [
|
|
1774
|
+
'sourceStrings'
|
|
1775
|
+
],
|
|
1776
|
+
operation: [
|
|
1777
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1137
1778
|
]
|
|
1138
1779
|
}
|
|
1139
1780
|
}
|