@crowdin/n8n-nodes-crowdin 0.30.0 → 0.32.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/applications.js +1509 -301
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.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 +15 -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/oAuthClients.d.ts +2 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.js +361 -0
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.js.map +1 -0
- 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 +199 -15
- 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 +59 -31
- 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/applications.js +1509 -301
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.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 +15 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.d.ts +2 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.js +361 -0
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.js.map +1 -0
- 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 +199 -15
- 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/applications.js +1513 -305
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.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/index.js +7 -0
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.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/oAuthClients.d.ts +2 -0
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.js +361 -0
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.js.map +1 -0
- 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 +390 -7
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +59 -31
- 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/applications.js +1513 -305
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.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/index.js +7 -0
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.d.ts +2 -0
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.js +361 -0
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.js.map +1 -0
- 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 +390 -7
- 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',
|
|
@@ -1051,35 +1189,538 @@ exports.sourceStringsProperties = [
|
|
|
1051
1189
|
}
|
|
1052
1190
|
},
|
|
1053
1191
|
{
|
|
1054
|
-
displayName: '
|
|
1055
|
-
name: '
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1192
|
+
displayName: 'Project Id',
|
|
1193
|
+
name: 'projectId',
|
|
1194
|
+
required: true,
|
|
1195
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1196
|
+
default: '',
|
|
1197
|
+
type: 'options',
|
|
1059
1198
|
displayOptions: {
|
|
1060
1199
|
show: {
|
|
1061
1200
|
resource: [
|
|
1062
1201
|
'sourceStrings'
|
|
1063
1202
|
],
|
|
1064
1203
|
operation: [
|
|
1065
|
-
'api.projects.strings.
|
|
1204
|
+
'api.projects.strings.replacements.post'
|
|
1066
1205
|
]
|
|
1067
1206
|
}
|
|
1207
|
+
},
|
|
1208
|
+
typeOptions: {
|
|
1209
|
+
loadOptionsMethod: 'getProjects'
|
|
1068
1210
|
}
|
|
1069
1211
|
},
|
|
1070
1212
|
{
|
|
1071
|
-
displayName: '
|
|
1072
|
-
|
|
1213
|
+
displayName: 'Text',
|
|
1214
|
+
required: true,
|
|
1215
|
+
name: 'text',
|
|
1216
|
+
type: 'string',
|
|
1217
|
+
default: '',
|
|
1218
|
+
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',
|
|
1219
|
+
routing: {
|
|
1220
|
+
send: {
|
|
1221
|
+
property: 'text',
|
|
1222
|
+
propertyInDotNotation: false,
|
|
1223
|
+
type: 'body',
|
|
1224
|
+
value: '={{ $value || undefined }}'
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
displayOptions: {
|
|
1228
|
+
show: {
|
|
1229
|
+
resource: [
|
|
1230
|
+
'sourceStrings'
|
|
1231
|
+
],
|
|
1232
|
+
operation: [
|
|
1233
|
+
'api.projects.strings.replacements.post'
|
|
1234
|
+
]
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
placeholder: 'Workspace'
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
displayName: 'Replace With',
|
|
1241
|
+
required: true,
|
|
1242
|
+
name: 'replaceWith',
|
|
1243
|
+
type: 'string',
|
|
1244
|
+
default: '',
|
|
1245
|
+
description: 'Text that replaces every match, up to 10000 characters. Inserted literally: `$1` or `\\0` stay as typed. An empty string removes the matches',
|
|
1246
|
+
routing: {
|
|
1247
|
+
send: {
|
|
1248
|
+
property: 'replaceWith',
|
|
1249
|
+
propertyInDotNotation: false,
|
|
1250
|
+
type: 'body',
|
|
1251
|
+
value: '={{ $value || undefined }}'
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
displayOptions: {
|
|
1255
|
+
show: {
|
|
1256
|
+
resource: [
|
|
1257
|
+
'sourceStrings'
|
|
1258
|
+
],
|
|
1259
|
+
operation: [
|
|
1260
|
+
'api.projects.strings.replacements.post'
|
|
1261
|
+
]
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
placeholder: 'Space'
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
displayName: 'Match Mode',
|
|
1268
|
+
name: 'matchMode',
|
|
1269
|
+
type: 'options',
|
|
1270
|
+
default: '',
|
|
1271
|
+
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`',
|
|
1272
|
+
options: [
|
|
1273
|
+
{
|
|
1274
|
+
name: '-',
|
|
1275
|
+
value: ''
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
name: 'phrase',
|
|
1279
|
+
value: 'phrase'
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
name: 'allWords',
|
|
1283
|
+
value: 'allWords'
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
name: 'entireText',
|
|
1287
|
+
value: 'entireText'
|
|
1288
|
+
}
|
|
1289
|
+
],
|
|
1290
|
+
routing: {
|
|
1291
|
+
send: {
|
|
1292
|
+
property: 'matchMode',
|
|
1293
|
+
propertyInDotNotation: false,
|
|
1294
|
+
type: 'body',
|
|
1295
|
+
value: '={{ $value || undefined }}'
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
displayOptions: {
|
|
1299
|
+
show: {
|
|
1300
|
+
resource: [
|
|
1301
|
+
'sourceStrings'
|
|
1302
|
+
],
|
|
1303
|
+
operation: [
|
|
1304
|
+
'api.projects.strings.replacements.post'
|
|
1305
|
+
]
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
displayName: 'Case Sensitive',
|
|
1311
|
+
name: 'caseSensitive',
|
|
1073
1312
|
type: 'boolean',
|
|
1074
|
-
default:
|
|
1075
|
-
description: '
|
|
1313
|
+
default: false,
|
|
1314
|
+
description: 'If `true`, the letter case of `text` must match. Default is `false`',
|
|
1315
|
+
routing: {
|
|
1316
|
+
send: {
|
|
1317
|
+
property: 'caseSensitive',
|
|
1318
|
+
propertyInDotNotation: false,
|
|
1319
|
+
type: 'body',
|
|
1320
|
+
value: '={{ $value }}'
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1076
1323
|
displayOptions: {
|
|
1077
1324
|
show: {
|
|
1078
1325
|
resource: [
|
|
1079
1326
|
'sourceStrings'
|
|
1080
1327
|
],
|
|
1081
1328
|
operation: [
|
|
1082
|
-
'api.strings.
|
|
1329
|
+
'api.projects.strings.replacements.post'
|
|
1330
|
+
]
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
displayName: 'File Ids',
|
|
1336
|
+
name: 'fileIds',
|
|
1337
|
+
type: 'multiOptions',
|
|
1338
|
+
default: [],
|
|
1339
|
+
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',
|
|
1340
|
+
routing: {
|
|
1341
|
+
send: {
|
|
1342
|
+
property: 'fileIds',
|
|
1343
|
+
propertyInDotNotation: false,
|
|
1344
|
+
type: 'body',
|
|
1345
|
+
value: '={{ $value }}'
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
displayOptions: {
|
|
1349
|
+
show: {
|
|
1350
|
+
resource: [
|
|
1351
|
+
'sourceStrings'
|
|
1352
|
+
],
|
|
1353
|
+
operation: [
|
|
1354
|
+
'api.projects.strings.replacements.post'
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
typeOptions: {
|
|
1359
|
+
loadOptionsMethod: 'getProjectFilesMulti',
|
|
1360
|
+
loadOptionsDependsOn: [
|
|
1361
|
+
'projectId'
|
|
1362
|
+
]
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
displayName: 'Directory Ids',
|
|
1367
|
+
name: 'directoryIds',
|
|
1368
|
+
type: 'multiOptions',
|
|
1369
|
+
default: [],
|
|
1370
|
+
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',
|
|
1371
|
+
routing: {
|
|
1372
|
+
send: {
|
|
1373
|
+
property: 'directoryIds',
|
|
1374
|
+
propertyInDotNotation: false,
|
|
1375
|
+
type: 'body',
|
|
1376
|
+
value: '={{ $value }}'
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
displayOptions: {
|
|
1380
|
+
show: {
|
|
1381
|
+
resource: [
|
|
1382
|
+
'sourceStrings'
|
|
1383
|
+
],
|
|
1384
|
+
operation: [
|
|
1385
|
+
'api.projects.strings.replacements.post'
|
|
1386
|
+
]
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
typeOptions: {
|
|
1390
|
+
loadOptionsMethod: 'getProjectDirectoriesMulti',
|
|
1391
|
+
loadOptionsDependsOn: [
|
|
1392
|
+
'projectId'
|
|
1393
|
+
]
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
displayName: 'Branch Ids',
|
|
1398
|
+
name: 'branchIds',
|
|
1399
|
+
type: 'multiOptions',
|
|
1400
|
+
default: [],
|
|
1401
|
+
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',
|
|
1402
|
+
routing: {
|
|
1403
|
+
send: {
|
|
1404
|
+
property: 'branchIds',
|
|
1405
|
+
propertyInDotNotation: false,
|
|
1406
|
+
type: 'body',
|
|
1407
|
+
value: '={{ $value }}'
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
displayOptions: {
|
|
1411
|
+
show: {
|
|
1412
|
+
resource: [
|
|
1413
|
+
'sourceStrings'
|
|
1414
|
+
],
|
|
1415
|
+
operation: [
|
|
1416
|
+
'api.projects.strings.replacements.post'
|
|
1417
|
+
]
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
typeOptions: {
|
|
1421
|
+
loadOptionsMethod: 'getBranchesMulti',
|
|
1422
|
+
loadOptionsDependsOn: [
|
|
1423
|
+
'projectId'
|
|
1424
|
+
]
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
displayName: 'String Ids',
|
|
1429
|
+
name: 'stringIds',
|
|
1430
|
+
type: 'multiOptions',
|
|
1431
|
+
default: [],
|
|
1432
|
+
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',
|
|
1433
|
+
routing: {
|
|
1434
|
+
send: {
|
|
1435
|
+
property: 'stringIds',
|
|
1436
|
+
propertyInDotNotation: false,
|
|
1437
|
+
type: 'body',
|
|
1438
|
+
value: '={{ $value }}'
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
displayOptions: {
|
|
1442
|
+
show: {
|
|
1443
|
+
resource: [
|
|
1444
|
+
'sourceStrings'
|
|
1445
|
+
],
|
|
1446
|
+
operation: [
|
|
1447
|
+
'api.projects.strings.replacements.post'
|
|
1448
|
+
]
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
typeOptions: {
|
|
1452
|
+
loadOptionsMethod: 'getProjectStringsMulti',
|
|
1453
|
+
loadOptionsDependsOn: [
|
|
1454
|
+
'projectId'
|
|
1455
|
+
]
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
displayName: 'Update Option',
|
|
1460
|
+
name: 'updateOption',
|
|
1461
|
+
type: 'options',
|
|
1462
|
+
default: '',
|
|
1463
|
+
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`',
|
|
1464
|
+
options: [
|
|
1465
|
+
{
|
|
1466
|
+
name: '-',
|
|
1467
|
+
value: ''
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
name: 'keep_translations_and_approvals',
|
|
1471
|
+
value: 'keep_translations_and_approvals'
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: 'keep_translations',
|
|
1475
|
+
value: 'keep_translations'
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
name: 'clear_translations_and_approvals',
|
|
1479
|
+
value: 'clear_translations_and_approvals'
|
|
1480
|
+
}
|
|
1481
|
+
],
|
|
1482
|
+
routing: {
|
|
1483
|
+
send: {
|
|
1484
|
+
property: 'updateOption',
|
|
1485
|
+
propertyInDotNotation: false,
|
|
1486
|
+
type: 'body',
|
|
1487
|
+
value: '={{ $value || undefined }}'
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
displayOptions: {
|
|
1491
|
+
show: {
|
|
1492
|
+
resource: [
|
|
1493
|
+
'sourceStrings'
|
|
1494
|
+
],
|
|
1495
|
+
operation: [
|
|
1496
|
+
'api.projects.strings.replacements.post'
|
|
1497
|
+
]
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
displayName: 'Dry Run',
|
|
1503
|
+
name: 'dryRun',
|
|
1504
|
+
type: 'boolean',
|
|
1505
|
+
default: false,
|
|
1506
|
+
description: 'If `true`, the matches are found and listed, but no string is changed. Default is `false`',
|
|
1507
|
+
routing: {
|
|
1508
|
+
send: {
|
|
1509
|
+
property: 'dryRun',
|
|
1510
|
+
propertyInDotNotation: false,
|
|
1511
|
+
type: 'body',
|
|
1512
|
+
value: '={{ $value }}'
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
displayOptions: {
|
|
1516
|
+
show: {
|
|
1517
|
+
resource: [
|
|
1518
|
+
'sourceStrings'
|
|
1519
|
+
],
|
|
1520
|
+
operation: [
|
|
1521
|
+
'api.projects.strings.replacements.post'
|
|
1522
|
+
]
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
displayName: 'Project Id',
|
|
1528
|
+
name: 'projectId',
|
|
1529
|
+
required: true,
|
|
1530
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1531
|
+
default: '',
|
|
1532
|
+
type: 'options',
|
|
1533
|
+
displayOptions: {
|
|
1534
|
+
show: {
|
|
1535
|
+
resource: [
|
|
1536
|
+
'sourceStrings'
|
|
1537
|
+
],
|
|
1538
|
+
operation: [
|
|
1539
|
+
'api.projects.strings.replacements.get'
|
|
1540
|
+
]
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
typeOptions: {
|
|
1544
|
+
loadOptionsMethod: 'getProjects'
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
displayName: 'Replacement Id',
|
|
1549
|
+
name: 'replacementId',
|
|
1550
|
+
required: true,
|
|
1551
|
+
description: 'ID of the source string replacement. Get via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post)',
|
|
1552
|
+
default: '',
|
|
1553
|
+
type: 'string',
|
|
1554
|
+
displayOptions: {
|
|
1555
|
+
show: {
|
|
1556
|
+
resource: [
|
|
1557
|
+
'sourceStrings'
|
|
1558
|
+
],
|
|
1559
|
+
operation: [
|
|
1560
|
+
'api.projects.strings.replacements.get'
|
|
1561
|
+
]
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
placeholder: '50fb3506-4127-4ba8-8296-f97dc7e3e0c3'
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
displayName: 'Project Id',
|
|
1568
|
+
name: 'projectId',
|
|
1569
|
+
required: true,
|
|
1570
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1571
|
+
default: '',
|
|
1572
|
+
type: 'options',
|
|
1573
|
+
displayOptions: {
|
|
1574
|
+
show: {
|
|
1575
|
+
resource: [
|
|
1576
|
+
'sourceStrings'
|
|
1577
|
+
],
|
|
1578
|
+
operation: [
|
|
1579
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1580
|
+
]
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
typeOptions: {
|
|
1584
|
+
loadOptionsMethod: 'getProjects'
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
displayName: 'Replacement Id',
|
|
1589
|
+
name: 'replacementId',
|
|
1590
|
+
required: true,
|
|
1591
|
+
description: 'ID of the source string replacement. Get via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post)',
|
|
1592
|
+
default: '',
|
|
1593
|
+
type: 'string',
|
|
1594
|
+
displayOptions: {
|
|
1595
|
+
show: {
|
|
1596
|
+
resource: [
|
|
1597
|
+
'sourceStrings'
|
|
1598
|
+
],
|
|
1599
|
+
operation: [
|
|
1600
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1601
|
+
]
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
placeholder: '50fb3506-4127-4ba8-8296-f97dc7e3e0c3'
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
displayName: 'Limit',
|
|
1608
|
+
name: 'limit',
|
|
1609
|
+
description: 'Max number of results to return',
|
|
1610
|
+
default: 50,
|
|
1611
|
+
type: 'number',
|
|
1612
|
+
routing: {
|
|
1613
|
+
send: {
|
|
1614
|
+
type: 'query',
|
|
1615
|
+
property: 'limit',
|
|
1616
|
+
value: '={{ typeof $value === \'number\' ? $value : undefined }}',
|
|
1617
|
+
propertyInDotNotation: false
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
displayOptions: {
|
|
1621
|
+
show: {
|
|
1622
|
+
resource: [
|
|
1623
|
+
'sourceStrings'
|
|
1624
|
+
],
|
|
1625
|
+
operation: [
|
|
1626
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1627
|
+
],
|
|
1628
|
+
returnAll: [
|
|
1629
|
+
false
|
|
1630
|
+
]
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
typeOptions: {
|
|
1634
|
+
minValue: 1
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
displayName: 'Project Id',
|
|
1639
|
+
name: 'projectId',
|
|
1640
|
+
required: true,
|
|
1641
|
+
description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1642
|
+
default: '',
|
|
1643
|
+
type: 'options',
|
|
1644
|
+
displayOptions: {
|
|
1645
|
+
show: {
|
|
1646
|
+
resource: [
|
|
1647
|
+
'sourceStrings'
|
|
1648
|
+
],
|
|
1649
|
+
operation: [
|
|
1650
|
+
'api.projects.strings.replacements.summary.get'
|
|
1651
|
+
]
|
|
1652
|
+
}
|
|
1653
|
+
},
|
|
1654
|
+
typeOptions: {
|
|
1655
|
+
loadOptionsMethod: 'getProjects'
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
displayName: 'Replacement Id',
|
|
1660
|
+
name: 'replacementId',
|
|
1661
|
+
required: true,
|
|
1662
|
+
description: 'ID of the source string replacement. Get via [Replace Text in Source Strings](#operation/api.projects.strings.replacements.post)',
|
|
1663
|
+
default: '',
|
|
1664
|
+
type: 'string',
|
|
1665
|
+
displayOptions: {
|
|
1666
|
+
show: {
|
|
1667
|
+
resource: [
|
|
1668
|
+
'sourceStrings'
|
|
1669
|
+
],
|
|
1670
|
+
operation: [
|
|
1671
|
+
'api.projects.strings.replacements.summary.get'
|
|
1672
|
+
]
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
placeholder: '50fb3506-4127-4ba8-8296-f97dc7e3e0c3'
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
displayName: 'Return All',
|
|
1679
|
+
name: 'returnAll',
|
|
1680
|
+
type: 'boolean',
|
|
1681
|
+
default: true,
|
|
1682
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1683
|
+
displayOptions: {
|
|
1684
|
+
show: {
|
|
1685
|
+
resource: [
|
|
1686
|
+
'sourceStrings'
|
|
1687
|
+
],
|
|
1688
|
+
operation: [
|
|
1689
|
+
'api.projects.strings.getMany'
|
|
1690
|
+
]
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
displayName: 'Return All',
|
|
1696
|
+
name: 'returnAll',
|
|
1697
|
+
type: 'boolean',
|
|
1698
|
+
default: true,
|
|
1699
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1700
|
+
displayOptions: {
|
|
1701
|
+
show: {
|
|
1702
|
+
resource: [
|
|
1703
|
+
'sourceStrings'
|
|
1704
|
+
],
|
|
1705
|
+
operation: [
|
|
1706
|
+
'api.strings.getMany'
|
|
1707
|
+
]
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
displayName: 'Return All',
|
|
1713
|
+
name: 'returnAll',
|
|
1714
|
+
type: 'boolean',
|
|
1715
|
+
default: true,
|
|
1716
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1717
|
+
displayOptions: {
|
|
1718
|
+
show: {
|
|
1719
|
+
resource: [
|
|
1720
|
+
'sourceStrings'
|
|
1721
|
+
],
|
|
1722
|
+
operation: [
|
|
1723
|
+
'api.projects.strings.replacements.matches.getMany'
|
|
1083
1724
|
]
|
|
1084
1725
|
}
|
|
1085
1726
|
}
|