@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
|
@@ -16,6 +16,95 @@ exports.usersProperties = [
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'List Managers',
|
|
21
|
+
value: 'api.managers.getMany',
|
|
22
|
+
action: 'List Managers',
|
|
23
|
+
description: '**Required scopes:** `manager` (Read only).\n\nReturns the managers of your account: users you let manage your projects, TMs, glossaries, and style guides (`active`), and people invited by email who have not accepted the invitation yet (`pending`). Each manager lists only the resources you own or manage. Default order is by `id`.\n\n__Note:__ Managers you added to a project with `managerAccess` in [Add Project Member](#operation/api.projects.members.post) are listed too',
|
|
24
|
+
routing: {
|
|
25
|
+
request: {
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '=/managers'
|
|
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 Manager',
|
|
47
|
+
value: 'api.managers.post',
|
|
48
|
+
action: 'Add Manager',
|
|
49
|
+
description: '**Required scopes:** `manager` (Read and Write).\n\nAdds a manager to your account and grants them access to the listed projects, TMs, glossaries, and style guides. Default TMs and glossaries of the listed projects are granted too. A user added by `username`, or by an `email` that belongs to a Crowdin account, becomes `active` at once and gets a notification. Anyone else gets an invitation email and stays `pending` until they accept it. If an invitation email went to the address in the last 24 hours, from any account, no new email is sent, but the invitation is saved. An invitation can\'t be sent again: adding a person who already has your pending invitation returns `409` and sends no email.\n\n__Note:__ Available only if your email is verified. Up to 50 manager emails a day; each manager takes a seat in your plan\'s managers limit',
|
|
50
|
+
routing: {
|
|
51
|
+
request: {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
url: '=/managers'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Get Manager',
|
|
59
|
+
value: 'api.managers.get',
|
|
60
|
+
action: 'Get Manager',
|
|
61
|
+
description: '**Required scopes:** `manager` (Read only).\n\nReturns a manager or a pending invitation of your account, with the resources you own or manage that they have access to.',
|
|
62
|
+
routing: {
|
|
63
|
+
request: {
|
|
64
|
+
method: 'GET',
|
|
65
|
+
url: '=/managers/{{$parameter["managerId"]}}'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Delete Manager',
|
|
71
|
+
value: 'api.managers.delete',
|
|
72
|
+
action: 'Delete Manager',
|
|
73
|
+
description: '**Required scopes:** `manager` (Read and Write).\n\nRemoves a manager from your account, or cancels a pending invitation. An active manager stops managing all projects in `projectIds`, with all roles and tasks there, and loses access to your TMs, glossaries, and style guides. Canceling an invitation withdraws the offers on resources you own or manage; offers from other accounts on other resources stay.\n\n__Note:__ Needs a token that isn\'t restricted to specific projects or resources. Crowdin app agents can\'t be removed here; uninstall the app instead',
|
|
74
|
+
routing: {
|
|
75
|
+
request: {
|
|
76
|
+
method: 'DELETE',
|
|
77
|
+
url: '=/managers/{{$parameter["managerId"]}}'
|
|
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 Manager',
|
|
93
|
+
value: 'api.managers.patch',
|
|
94
|
+
action: 'Edit Manager',
|
|
95
|
+
description: '**Required scopes:** `manager` (Read and Write).\n\nChanges the access of an active manager to your projects, TMs, glossaries, and style guides, or changes a pending invitation. `replace` sets a whole list, `add` grants one resource, and `remove` revokes one. Operations apply in order. Default TMs and glossaries of an added project are granted too; removing a project removes the manager from it with all roles and tasks. An active manager gets a notification about new access only; a pending manager gets no email.\n\n__Note:__ A default TM or glossary of a project the manager keeps can\'t be removed on its own. A patch that leaves the manager without any access is rejected; use [Delete Manager](#operation/api.managers.delete) to remove all access',
|
|
96
|
+
routing: {
|
|
97
|
+
request: {
|
|
98
|
+
method: 'PATCH',
|
|
99
|
+
url: '=/managers/{{$parameter["managerId"]}}'
|
|
100
|
+
},
|
|
101
|
+
send: {
|
|
102
|
+
preSend: [
|
|
103
|
+
preSend_1.transformToJsonPatch
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
19
108
|
{
|
|
20
109
|
name: 'Get Authenticated User',
|
|
21
110
|
value: 'api.user.get',
|
|
@@ -81,7 +170,7 @@ exports.usersProperties = [
|
|
|
81
170
|
name: 'Delete Member From Project',
|
|
82
171
|
value: 'api.projects.members.delete',
|
|
83
172
|
action: 'Delete Member From Project',
|
|
84
|
-
description: '**Required scopes:** `project.member` (Read and Write).',
|
|
173
|
+
description: '**Required scopes:** `project.member` (Read and Write).\n\nRemoves a member from the project. A manager can pass their own ID to leave the project, and the project owner is notified.',
|
|
85
174
|
routing: {
|
|
86
175
|
request: {
|
|
87
176
|
method: 'DELETE',
|
|
@@ -100,7 +189,102 @@ exports.usersProperties = [
|
|
|
100
189
|
}
|
|
101
190
|
}
|
|
102
191
|
],
|
|
103
|
-
default: 'api.
|
|
192
|
+
default: 'api.managers.getMany'
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'GET /managers',
|
|
196
|
+
name: 'operation',
|
|
197
|
+
type: 'notice',
|
|
198
|
+
typeOptions: {
|
|
199
|
+
theme: 'info'
|
|
200
|
+
},
|
|
201
|
+
default: '',
|
|
202
|
+
displayOptions: {
|
|
203
|
+
show: {
|
|
204
|
+
resource: [
|
|
205
|
+
'users'
|
|
206
|
+
],
|
|
207
|
+
operation: [
|
|
208
|
+
'api.managers.getMany'
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
displayName: 'POST /managers',
|
|
215
|
+
name: 'operation',
|
|
216
|
+
type: 'notice',
|
|
217
|
+
typeOptions: {
|
|
218
|
+
theme: 'info'
|
|
219
|
+
},
|
|
220
|
+
default: '',
|
|
221
|
+
displayOptions: {
|
|
222
|
+
show: {
|
|
223
|
+
resource: [
|
|
224
|
+
'users'
|
|
225
|
+
],
|
|
226
|
+
operation: [
|
|
227
|
+
'api.managers.post'
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
displayName: 'GET /managers/{managerId}',
|
|
234
|
+
name: 'operation',
|
|
235
|
+
type: 'notice',
|
|
236
|
+
typeOptions: {
|
|
237
|
+
theme: 'info'
|
|
238
|
+
},
|
|
239
|
+
default: '',
|
|
240
|
+
displayOptions: {
|
|
241
|
+
show: {
|
|
242
|
+
resource: [
|
|
243
|
+
'users'
|
|
244
|
+
],
|
|
245
|
+
operation: [
|
|
246
|
+
'api.managers.get'
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
displayName: 'DELETE /managers/{managerId}',
|
|
253
|
+
name: 'operation',
|
|
254
|
+
type: 'notice',
|
|
255
|
+
typeOptions: {
|
|
256
|
+
theme: 'info'
|
|
257
|
+
},
|
|
258
|
+
default: '',
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: {
|
|
261
|
+
resource: [
|
|
262
|
+
'users'
|
|
263
|
+
],
|
|
264
|
+
operation: [
|
|
265
|
+
'api.managers.delete'
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
displayName: 'PATCH /managers/{managerId}',
|
|
272
|
+
name: 'operation',
|
|
273
|
+
type: 'notice',
|
|
274
|
+
typeOptions: {
|
|
275
|
+
theme: 'info'
|
|
276
|
+
},
|
|
277
|
+
default: '',
|
|
278
|
+
displayOptions: {
|
|
279
|
+
show: {
|
|
280
|
+
resource: [
|
|
281
|
+
'users'
|
|
282
|
+
],
|
|
283
|
+
operation: [
|
|
284
|
+
'api.managers.patch'
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
}
|
|
104
288
|
},
|
|
105
289
|
{
|
|
106
290
|
displayName: 'GET /user',
|
|
@@ -197,6 +381,416 @@ exports.usersProperties = [
|
|
|
197
381
|
}
|
|
198
382
|
}
|
|
199
383
|
},
|
|
384
|
+
{
|
|
385
|
+
displayName: 'Status',
|
|
386
|
+
name: 'status',
|
|
387
|
+
description: 'Filter results by manager status. It can be one status or a list of comma-separated ones. One of: `active`, `pending`. Default is both',
|
|
388
|
+
default: '',
|
|
389
|
+
type: 'string',
|
|
390
|
+
routing: {
|
|
391
|
+
send: {
|
|
392
|
+
type: 'query',
|
|
393
|
+
property: 'status',
|
|
394
|
+
value: '={{ $value || undefined }}',
|
|
395
|
+
propertyInDotNotation: false
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
displayOptions: {
|
|
399
|
+
show: {
|
|
400
|
+
resource: [
|
|
401
|
+
'users'
|
|
402
|
+
],
|
|
403
|
+
operation: [
|
|
404
|
+
'api.managers.getMany'
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
placeholder: 'active,pending'
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
displayName: 'Email',
|
|
412
|
+
name: 'email',
|
|
413
|
+
description: 'Filter results to the invitation sent to this email, ignoring case. Applies to `pending` managers only',
|
|
414
|
+
default: '',
|
|
415
|
+
type: 'string',
|
|
416
|
+
routing: {
|
|
417
|
+
send: {
|
|
418
|
+
type: 'query',
|
|
419
|
+
property: 'email',
|
|
420
|
+
value: '={{ $value || undefined }}',
|
|
421
|
+
propertyInDotNotation: false
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
displayOptions: {
|
|
425
|
+
show: {
|
|
426
|
+
resource: [
|
|
427
|
+
'users'
|
|
428
|
+
],
|
|
429
|
+
operation: [
|
|
430
|
+
'api.managers.getMany'
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
placeholder: 'jane.smith@example.com'
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
displayName: 'Search',
|
|
438
|
+
name: 'search',
|
|
439
|
+
description: 'Filter results to managers whose username or full name contains this text, ignoring case',
|
|
440
|
+
default: '',
|
|
441
|
+
type: 'string',
|
|
442
|
+
routing: {
|
|
443
|
+
send: {
|
|
444
|
+
type: 'query',
|
|
445
|
+
property: 'search',
|
|
446
|
+
value: '={{ $value || undefined }}',
|
|
447
|
+
propertyInDotNotation: false
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
displayOptions: {
|
|
451
|
+
show: {
|
|
452
|
+
resource: [
|
|
453
|
+
'users'
|
|
454
|
+
],
|
|
455
|
+
operation: [
|
|
456
|
+
'api.managers.getMany'
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
placeholder: 'olena'
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
displayName: 'Project Ids',
|
|
464
|
+
name: 'projectIds',
|
|
465
|
+
description: 'Filter results to managers with access to at least one of these projects. It can be one ID or a list of comma-separated ID values',
|
|
466
|
+
default: [],
|
|
467
|
+
type: 'multiOptions',
|
|
468
|
+
routing: {
|
|
469
|
+
send: {
|
|
470
|
+
type: 'query',
|
|
471
|
+
property: 'projectIds',
|
|
472
|
+
value: '={{ $value.length ? $value.join(\',\') : undefined }}',
|
|
473
|
+
propertyInDotNotation: false
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
displayOptions: {
|
|
477
|
+
show: {
|
|
478
|
+
resource: [
|
|
479
|
+
'users'
|
|
480
|
+
],
|
|
481
|
+
operation: [
|
|
482
|
+
'api.managers.getMany'
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
typeOptions: {
|
|
487
|
+
loadOptionsMethod: 'getProjectsMulti'
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
displayName: 'Order By',
|
|
492
|
+
name: 'orderBy',
|
|
493
|
+
description: 'Read more about [sorting rules](#section/Introduction/Sorting). Default is `id`',
|
|
494
|
+
default: '',
|
|
495
|
+
type: 'string',
|
|
496
|
+
routing: {
|
|
497
|
+
send: {
|
|
498
|
+
type: 'query',
|
|
499
|
+
property: 'orderBy',
|
|
500
|
+
value: '={{ $value || undefined }}',
|
|
501
|
+
propertyInDotNotation: false
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
displayOptions: {
|
|
505
|
+
show: {
|
|
506
|
+
resource: [
|
|
507
|
+
'users'
|
|
508
|
+
],
|
|
509
|
+
operation: [
|
|
510
|
+
'api.managers.getMany'
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
placeholder: 'createdAt desc,id'
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
displayName: 'Limit',
|
|
518
|
+
name: 'limit',
|
|
519
|
+
description: 'Max number of results to return',
|
|
520
|
+
default: 50,
|
|
521
|
+
type: 'number',
|
|
522
|
+
routing: {
|
|
523
|
+
send: {
|
|
524
|
+
type: 'query',
|
|
525
|
+
property: 'limit',
|
|
526
|
+
value: '={{ typeof $value === \'number\' ? $value : undefined }}',
|
|
527
|
+
propertyInDotNotation: false
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
displayOptions: {
|
|
531
|
+
show: {
|
|
532
|
+
resource: [
|
|
533
|
+
'users'
|
|
534
|
+
],
|
|
535
|
+
operation: [
|
|
536
|
+
'api.managers.getMany'
|
|
537
|
+
],
|
|
538
|
+
returnAll: [
|
|
539
|
+
false
|
|
540
|
+
]
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
typeOptions: {
|
|
544
|
+
minValue: 1
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
displayName: 'Username',
|
|
549
|
+
name: 'username',
|
|
550
|
+
type: 'string',
|
|
551
|
+
default: '',
|
|
552
|
+
description: 'Username of a registered user. The user becomes an `active` manager at once.\n\n__Note:__ One of fields `username` or `email` is required. Both cannot be provided simultaneously',
|
|
553
|
+
routing: {
|
|
554
|
+
send: {
|
|
555
|
+
property: 'username',
|
|
556
|
+
propertyInDotNotation: false,
|
|
557
|
+
type: 'body',
|
|
558
|
+
value: '={{ $value || undefined }}'
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
displayOptions: {
|
|
562
|
+
show: {
|
|
563
|
+
resource: [
|
|
564
|
+
'users'
|
|
565
|
+
],
|
|
566
|
+
operation: [
|
|
567
|
+
'api.managers.post'
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
placeholder: 'taras.m'
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
displayName: 'Email',
|
|
575
|
+
name: 'email',
|
|
576
|
+
type: 'string',
|
|
577
|
+
default: '',
|
|
578
|
+
description: 'Email of the person to add. If it belongs to a Crowdin account, the manager is `active` at once. Otherwise the person gets an invitation email and stays `pending` until they accept it.\n\n__Note:__ One of fields `username` or `email` is required. Both cannot be provided simultaneously',
|
|
579
|
+
routing: {
|
|
580
|
+
send: {
|
|
581
|
+
property: 'email',
|
|
582
|
+
propertyInDotNotation: false,
|
|
583
|
+
type: 'body',
|
|
584
|
+
value: '={{ $value || undefined }}'
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
displayOptions: {
|
|
588
|
+
show: {
|
|
589
|
+
resource: [
|
|
590
|
+
'users'
|
|
591
|
+
],
|
|
592
|
+
operation: [
|
|
593
|
+
'api.managers.post'
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
placeholder: 'jane.smith@example.com'
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
displayName: 'Project Ids',
|
|
601
|
+
name: 'projectIds',
|
|
602
|
+
type: 'multiOptions',
|
|
603
|
+
default: [],
|
|
604
|
+
description: 'IDs of your projects, or projects you manage, to grant manager access to. Default TMs and glossaries of these projects are granted too. Get via [List Projects](#operation/api.projects.getMany)',
|
|
605
|
+
routing: {
|
|
606
|
+
send: {
|
|
607
|
+
property: 'projectIds',
|
|
608
|
+
propertyInDotNotation: false,
|
|
609
|
+
type: 'body',
|
|
610
|
+
value: '={{ $value }}'
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
displayOptions: {
|
|
614
|
+
show: {
|
|
615
|
+
resource: [
|
|
616
|
+
'users'
|
|
617
|
+
],
|
|
618
|
+
operation: [
|
|
619
|
+
'api.managers.post'
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
typeOptions: {
|
|
624
|
+
loadOptionsMethod: 'getProjectsMulti'
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
displayName: 'Tm Ids',
|
|
629
|
+
name: 'tmIds',
|
|
630
|
+
type: 'multiOptions',
|
|
631
|
+
default: [],
|
|
632
|
+
description: 'IDs of your TMs, or TMs you manage, to grant access to. Get via [List TMs](#operation/api.tms.getMany)',
|
|
633
|
+
routing: {
|
|
634
|
+
send: {
|
|
635
|
+
property: 'tmIds',
|
|
636
|
+
propertyInDotNotation: false,
|
|
637
|
+
type: 'body',
|
|
638
|
+
value: '={{ $value }}'
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
displayOptions: {
|
|
642
|
+
show: {
|
|
643
|
+
resource: [
|
|
644
|
+
'users'
|
|
645
|
+
],
|
|
646
|
+
operation: [
|
|
647
|
+
'api.managers.post'
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
typeOptions: {
|
|
652
|
+
loadOptionsMethod: 'getTranslationMemoriesMulti'
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
displayName: 'Glossary Ids',
|
|
657
|
+
name: 'glossaryIds',
|
|
658
|
+
type: 'multiOptions',
|
|
659
|
+
default: [],
|
|
660
|
+
description: 'IDs of your glossaries, or glossaries you manage, to grant access to. Get via [List Glossaries](#operation/api.glossaries.getMany)',
|
|
661
|
+
routing: {
|
|
662
|
+
send: {
|
|
663
|
+
property: 'glossaryIds',
|
|
664
|
+
propertyInDotNotation: false,
|
|
665
|
+
type: 'body',
|
|
666
|
+
value: '={{ $value }}'
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
displayOptions: {
|
|
670
|
+
show: {
|
|
671
|
+
resource: [
|
|
672
|
+
'users'
|
|
673
|
+
],
|
|
674
|
+
operation: [
|
|
675
|
+
'api.managers.post'
|
|
676
|
+
]
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
typeOptions: {
|
|
680
|
+
loadOptionsMethod: 'getGlossariesMulti'
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
displayName: 'Style Guide Ids',
|
|
685
|
+
name: 'styleGuideIds',
|
|
686
|
+
type: 'multiOptions',
|
|
687
|
+
default: [],
|
|
688
|
+
description: 'IDs of your style guides, or style guides you manage, to grant access to. Get via [List Style Guides](#operation/api.style-guides.getMany)\n\n__Note:__ At least one of `projectIds`, `tmIds`, `glossaryIds` or `styleGuideIds` must not be empty',
|
|
689
|
+
routing: {
|
|
690
|
+
send: {
|
|
691
|
+
property: 'styleGuideIds',
|
|
692
|
+
propertyInDotNotation: false,
|
|
693
|
+
type: 'body',
|
|
694
|
+
value: '={{ $value }}'
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
displayOptions: {
|
|
698
|
+
show: {
|
|
699
|
+
resource: [
|
|
700
|
+
'users'
|
|
701
|
+
],
|
|
702
|
+
operation: [
|
|
703
|
+
'api.managers.post'
|
|
704
|
+
]
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
typeOptions: {
|
|
708
|
+
loadOptionsMethod: 'getStyleGuidesMulti'
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
displayName: 'Message',
|
|
713
|
+
name: 'message',
|
|
714
|
+
type: 'string',
|
|
715
|
+
default: '',
|
|
716
|
+
description: 'Personal message added to the notification email',
|
|
717
|
+
routing: {
|
|
718
|
+
send: {
|
|
719
|
+
property: 'message',
|
|
720
|
+
propertyInDotNotation: false,
|
|
721
|
+
type: 'body',
|
|
722
|
+
value: '={{ $value || undefined }}'
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
displayOptions: {
|
|
726
|
+
show: {
|
|
727
|
+
resource: [
|
|
728
|
+
'users'
|
|
729
|
+
],
|
|
730
|
+
operation: [
|
|
731
|
+
'api.managers.post'
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
placeholder: 'Hi Taras, please help us manage the mobile app localization.'
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
displayName: 'Manager Id',
|
|
739
|
+
name: 'managerId',
|
|
740
|
+
required: true,
|
|
741
|
+
description: 'ID of the manager. The same as the manager\'s user ID for both `active` and `pending` managers. Get via [List Managers](#operation/api.managers.getMany)',
|
|
742
|
+
default: undefined,
|
|
743
|
+
type: 'number',
|
|
744
|
+
displayOptions: {
|
|
745
|
+
show: {
|
|
746
|
+
resource: [
|
|
747
|
+
'users'
|
|
748
|
+
],
|
|
749
|
+
operation: [
|
|
750
|
+
'api.managers.get'
|
|
751
|
+
]
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
placeholder: '0'
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
displayName: 'Manager Id',
|
|
758
|
+
name: 'managerId',
|
|
759
|
+
required: true,
|
|
760
|
+
description: 'ID of the manager. The same as the manager\'s user ID for both `active` and `pending` managers. Get via [List Managers](#operation/api.managers.getMany)',
|
|
761
|
+
default: undefined,
|
|
762
|
+
type: 'number',
|
|
763
|
+
displayOptions: {
|
|
764
|
+
show: {
|
|
765
|
+
resource: [
|
|
766
|
+
'users'
|
|
767
|
+
],
|
|
768
|
+
operation: [
|
|
769
|
+
'api.managers.delete'
|
|
770
|
+
]
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
placeholder: '0'
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
displayName: 'Manager Id',
|
|
777
|
+
name: 'managerId',
|
|
778
|
+
required: true,
|
|
779
|
+
description: 'ID of the manager. The same as the manager\'s user ID for both `active` and `pending` managers. Get via [List Managers](#operation/api.managers.getMany)',
|
|
780
|
+
default: undefined,
|
|
781
|
+
type: 'number',
|
|
782
|
+
displayOptions: {
|
|
783
|
+
show: {
|
|
784
|
+
resource: [
|
|
785
|
+
'users'
|
|
786
|
+
],
|
|
787
|
+
operation: [
|
|
788
|
+
'api.managers.patch'
|
|
789
|
+
]
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
placeholder: '0'
|
|
793
|
+
},
|
|
200
794
|
{
|
|
201
795
|
displayName: 'Project Id',
|
|
202
796
|
name: 'projectId',
|
|
@@ -712,6 +1306,88 @@ exports.usersProperties = [
|
|
|
712
1306
|
]
|
|
713
1307
|
}
|
|
714
1308
|
},
|
|
1309
|
+
{
|
|
1310
|
+
displayName: 'Update Fields',
|
|
1311
|
+
name: 'updateFields',
|
|
1312
|
+
type: 'collection',
|
|
1313
|
+
placeholder: 'Add Field',
|
|
1314
|
+
default: {},
|
|
1315
|
+
displayOptions: {
|
|
1316
|
+
show: {
|
|
1317
|
+
resource: [
|
|
1318
|
+
'users'
|
|
1319
|
+
],
|
|
1320
|
+
operation: [
|
|
1321
|
+
'api.managers.patch'
|
|
1322
|
+
]
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
options: [
|
|
1326
|
+
{
|
|
1327
|
+
displayName: 'Project Ids',
|
|
1328
|
+
name: 'projectIds',
|
|
1329
|
+
type: 'multiOptions',
|
|
1330
|
+
default: [],
|
|
1331
|
+
description: 'IDs of your projects, or projects you manage, to grant manager access to. Default TMs and glossaries of these projects are granted too. Get via [List Projects](#operation/api.projects.getMany)',
|
|
1332
|
+
typeOptions: {
|
|
1333
|
+
loadOptionsMethod: 'getProjectsMulti'
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
displayName: 'Tm Ids',
|
|
1338
|
+
name: 'tmIds',
|
|
1339
|
+
type: 'multiOptions',
|
|
1340
|
+
default: [],
|
|
1341
|
+
description: 'IDs of your TMs, or TMs you manage, to grant access to. Get via [List TMs](#operation/api.tms.getMany)',
|
|
1342
|
+
typeOptions: {
|
|
1343
|
+
loadOptionsMethod: 'getTranslationMemoriesMulti'
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
displayName: 'Glossary Ids',
|
|
1348
|
+
name: 'glossaryIds',
|
|
1349
|
+
type: 'multiOptions',
|
|
1350
|
+
default: [],
|
|
1351
|
+
description: 'IDs of your glossaries, or glossaries you manage, to grant access to. Get via [List Glossaries](#operation/api.glossaries.getMany)',
|
|
1352
|
+
typeOptions: {
|
|
1353
|
+
loadOptionsMethod: 'getGlossariesMulti'
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
displayName: 'Style Guide Ids',
|
|
1358
|
+
name: 'styleGuideIds',
|
|
1359
|
+
type: 'multiOptions',
|
|
1360
|
+
default: [],
|
|
1361
|
+
description: 'IDs of your style guides, or style guides you manage, to grant access to. Get via [List Style Guides](#operation/api.style-guides.getMany)\n\n__Note:__ At least one of `projectIds`, `tmIds`, `glossaryIds` or `styleGuideIds` must not be empty',
|
|
1362
|
+
typeOptions: {
|
|
1363
|
+
loadOptionsMethod: 'getStyleGuidesMulti'
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
routing: {
|
|
1368
|
+
send: {
|
|
1369
|
+
type: 'body',
|
|
1370
|
+
value: '={{ $value }}'
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
displayName: 'Return All',
|
|
1376
|
+
name: 'returnAll',
|
|
1377
|
+
type: 'boolean',
|
|
1378
|
+
default: true,
|
|
1379
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
1380
|
+
displayOptions: {
|
|
1381
|
+
show: {
|
|
1382
|
+
resource: [
|
|
1383
|
+
'users'
|
|
1384
|
+
],
|
|
1385
|
+
operation: [
|
|
1386
|
+
'api.managers.getMany'
|
|
1387
|
+
]
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
715
1391
|
{
|
|
716
1392
|
displayName: 'Return All',
|
|
717
1393
|
name: 'returnAll',
|