@crowdin/n8n-nodes-crowdin 0.31.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js +1509 -301
  2. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js.map +1 -1
  3. package/dist/nodes/Crowdin/properties/crowdin/fileBased/billing.d.ts +2 -0
  4. package/dist/nodes/Crowdin/properties/crowdin/fileBased/billing.js +347 -0
  5. package/dist/nodes/Crowdin/properties/crowdin/fileBased/billing.js.map +1 -0
  6. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +14 -0
  7. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.d.ts +2 -0
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.js +361 -0
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.js.map +1 -0
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +144 -1
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js +24 -24
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js.map +1 -1
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js +48 -1
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js.map +1 -1
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +47 -0
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
  19. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js +1509 -301
  20. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js.map +1 -1
  21. package/dist/nodes/Crowdin/properties/crowdin/stringBased/billing.d.ts +2 -0
  22. package/dist/nodes/Crowdin/properties/crowdin/stringBased/billing.js +347 -0
  23. package/dist/nodes/Crowdin/properties/crowdin/stringBased/billing.js.map +1 -0
  24. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +14 -0
  25. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  26. package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.d.ts +2 -0
  27. package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.js +361 -0
  28. package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.js.map +1 -0
  29. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +144 -1
  30. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
  31. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js +48 -1
  32. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js.map +1 -1
  33. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +47 -0
  34. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
  35. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js +1513 -305
  36. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js.map +1 -1
  37. package/dist/nodes/Crowdin/properties/enterprise/fileBased/billing.d.ts +2 -0
  38. package/dist/nodes/Crowdin/properties/enterprise/fileBased/billing.js +347 -0
  39. package/dist/nodes/Crowdin/properties/enterprise/fileBased/billing.js.map +1 -0
  40. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +14 -0
  41. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  42. package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.d.ts +2 -0
  43. package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.js +361 -0
  44. package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.js.map +1 -0
  45. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +339 -1
  46. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  47. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +24 -24
  48. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js.map +1 -1
  49. package/dist/nodes/Crowdin/properties/enterprise/fileBased/tasks.js +48 -1
  50. package/dist/nodes/Crowdin/properties/enterprise/fileBased/tasks.js.map +1 -1
  51. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +47 -0
  52. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
  53. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js +1513 -305
  54. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js.map +1 -1
  55. package/dist/nodes/Crowdin/properties/enterprise/stringBased/billing.d.ts +2 -0
  56. package/dist/nodes/Crowdin/properties/enterprise/stringBased/billing.js +347 -0
  57. package/dist/nodes/Crowdin/properties/enterprise/stringBased/billing.js.map +1 -0
  58. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js +14 -0
  59. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
  60. package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.d.ts +2 -0
  61. package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.js +361 -0
  62. package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.js.map +1 -0
  63. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +339 -1
  64. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  65. package/dist/nodes/Crowdin/properties/enterprise/stringBased/tasks.js +48 -1
  66. package/dist/nodes/Crowdin/properties/enterprise/stringBased/tasks.js.map +1 -1
  67. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +47 -0
  68. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
  69. package/dist/package.json +1 -1
  70. package/dist/tsconfig.tsbuildinfo +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,361 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.oAuthClientsProperties = void 0;
4
+ exports.oAuthClientsProperties = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: [
13
+ 'oAuthClients'
14
+ ]
15
+ }
16
+ },
17
+ options: [
18
+ {
19
+ name: 'List OAuth Clients',
20
+ value: 'api.oauth-clients.getMany',
21
+ action: 'List OAuth Clients',
22
+ description: '**Required scopes:** `oauth-client` (Read only).\n\nReturns a list of OAuth clients sorted by name, with their secrets masked except for the first 3 characters.',
23
+ routing: {
24
+ request: {
25
+ method: 'GET',
26
+ url: '=/oauth-clients'
27
+ },
28
+ send: {
29
+ paginate: '={{$parameter["returnAll"]}}'
30
+ },
31
+ output: {
32
+ postReceive: [
33
+ {
34
+ type: 'rootProperty',
35
+ enabled: '={{!$parameter["returnAll"]}}',
36
+ properties: {
37
+ property: 'data'
38
+ }
39
+ }
40
+ ]
41
+ }
42
+ }
43
+ },
44
+ {
45
+ name: 'Add OAuth Client',
46
+ value: 'api.oauth-clients.post',
47
+ action: 'Add OAuth Client',
48
+ description: '**Required scopes:** `oauth-client` (Read and Write).\n\nCreates an OAuth client that an application or integration uses to call the API on behalf of users, and returns it together with its secret.\n\nA token limited to particular projects or other resources cannot create clients.\n\n__Note:__ The secret is returned only in this response. Store it securely',
49
+ routing: {
50
+ request: {
51
+ method: 'POST',
52
+ url: '=/oauth-clients'
53
+ }
54
+ }
55
+ },
56
+ {
57
+ name: 'Get OAuth Client',
58
+ value: 'api.oauth-clients.get',
59
+ action: 'Get OAuth Client',
60
+ description: '**Required scopes:** `oauth-client` (Read only).\n\nReturns an OAuth client with its secret masked except for the first 3 characters.',
61
+ routing: {
62
+ request: {
63
+ method: 'GET',
64
+ url: '=/oauth-clients/{{$parameter["clientId"]}}'
65
+ }
66
+ }
67
+ }
68
+ ],
69
+ default: 'api.oauth-clients.getMany'
70
+ },
71
+ {
72
+ displayName: 'GET /oauth-clients',
73
+ name: 'operation',
74
+ type: 'notice',
75
+ typeOptions: {
76
+ theme: 'info'
77
+ },
78
+ default: '',
79
+ displayOptions: {
80
+ show: {
81
+ resource: [
82
+ 'oAuthClients'
83
+ ],
84
+ operation: [
85
+ 'api.oauth-clients.getMany'
86
+ ]
87
+ }
88
+ }
89
+ },
90
+ {
91
+ displayName: 'POST /oauth-clients',
92
+ name: 'operation',
93
+ type: 'notice',
94
+ typeOptions: {
95
+ theme: 'info'
96
+ },
97
+ default: '',
98
+ displayOptions: {
99
+ show: {
100
+ resource: [
101
+ 'oAuthClients'
102
+ ],
103
+ operation: [
104
+ 'api.oauth-clients.post'
105
+ ]
106
+ }
107
+ }
108
+ },
109
+ {
110
+ displayName: 'GET /oauth-clients/{clientId}',
111
+ name: 'operation',
112
+ type: 'notice',
113
+ typeOptions: {
114
+ theme: 'info'
115
+ },
116
+ default: '',
117
+ displayOptions: {
118
+ show: {
119
+ resource: [
120
+ 'oAuthClients'
121
+ ],
122
+ operation: [
123
+ 'api.oauth-clients.get'
124
+ ]
125
+ }
126
+ }
127
+ },
128
+ {
129
+ displayName: 'Limit',
130
+ name: 'limit',
131
+ description: 'Max number of results to return',
132
+ default: 50,
133
+ type: 'number',
134
+ routing: {
135
+ send: {
136
+ type: 'query',
137
+ property: 'limit',
138
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
139
+ propertyInDotNotation: false
140
+ }
141
+ },
142
+ displayOptions: {
143
+ show: {
144
+ resource: [
145
+ 'oAuthClients'
146
+ ],
147
+ operation: [
148
+ 'api.oauth-clients.getMany'
149
+ ],
150
+ returnAll: [
151
+ false
152
+ ]
153
+ }
154
+ },
155
+ typeOptions: {
156
+ minValue: 1
157
+ }
158
+ },
159
+ {
160
+ displayName: 'Name',
161
+ required: true,
162
+ name: 'name',
163
+ type: 'string',
164
+ default: '',
165
+ description: 'Client name shown to users when the client asks for access (2–255 characters)',
166
+ routing: {
167
+ send: {
168
+ property: 'name',
169
+ propertyInDotNotation: false,
170
+ type: 'body',
171
+ value: '={{ $value || undefined }}'
172
+ }
173
+ },
174
+ displayOptions: {
175
+ show: {
176
+ resource: [
177
+ 'oAuthClients'
178
+ ],
179
+ operation: [
180
+ 'api.oauth-clients.post'
181
+ ]
182
+ }
183
+ },
184
+ placeholder: 'Acme Glossary Sync'
185
+ },
186
+ {
187
+ displayName: 'Redirect Urls',
188
+ required: true,
189
+ name: 'redirectUrls',
190
+ type: 'fixedCollection',
191
+ default: {},
192
+ description: 'URLs the user may return to after authorizing the client',
193
+ routing: {
194
+ send: {
195
+ property: 'redirectUrls',
196
+ propertyInDotNotation: false,
197
+ type: 'body',
198
+ value: '={{ $value.items?.map(i => i._value) || undefined }}'
199
+ }
200
+ },
201
+ displayOptions: {
202
+ show: {
203
+ resource: [
204
+ 'oAuthClients'
205
+ ],
206
+ operation: [
207
+ 'api.oauth-clients.post'
208
+ ]
209
+ }
210
+ },
211
+ typeOptions: {
212
+ multipleValues: true
213
+ },
214
+ placeholder: 'Add Item',
215
+ options: [
216
+ {
217
+ displayName: 'Items',
218
+ name: 'items',
219
+ values: [
220
+ {
221
+ displayName: 'Value',
222
+ name: '_value',
223
+ type: 'string',
224
+ default: ''
225
+ }
226
+ ]
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ displayName: 'Description',
232
+ name: 'description',
233
+ type: 'string',
234
+ default: '',
235
+ description: 'Client description (up to 10,000 characters)',
236
+ routing: {
237
+ send: {
238
+ property: 'description',
239
+ propertyInDotNotation: false,
240
+ type: 'body',
241
+ value: '={{ $value || undefined }}'
242
+ }
243
+ },
244
+ displayOptions: {
245
+ show: {
246
+ resource: [
247
+ 'oAuthClients'
248
+ ],
249
+ operation: [
250
+ 'api.oauth-clients.post'
251
+ ]
252
+ }
253
+ },
254
+ placeholder: 'Syncs glossaries between Acme and Crowdin'
255
+ },
256
+ {
257
+ displayName: 'Scopes',
258
+ name: 'scopes',
259
+ type: 'fixedCollection',
260
+ default: {},
261
+ description: 'Scopes the client may request. Default is `*`. The client cannot get a scope that the token or the app making this request lacks, so a caller without `*` has to list the scopes here.<br><br>Available scopes: `*`, `user`, `team`, `field`, `notification`, `tm`, `glossary`, `style-guide`, `mt`, `webhook`, `manager`, `vendor`, `client`, `group`, `project`, `project.settings`, `project.member`, `project.status`, `project.status.issue`, `project.status.progress`, `project.status.qa-check`, `project.source`, `project.source.file`, `project.source.string`, `project.translation`, `project.task`, `project.dictionary`, `project.report`, `project.advisor`, `project.placeholder`, `project.discussion`, `project.webhook`, `project.screenshot`, `security-log`, `ai`, `ai.prompt`, `ai.provider`, `ai.proxy`, `ai.translate`, `ai.request-log`, `application`, `application.installation`, `application.proxy`, `application.consent`, `application.storage`, `application.credits`, `application.transaction`, `organization`, `billing`, `custom-placeholder`, `custom-spellchecker`, `language`, `external-qa-check`, `automation`, `automation.rule`, `automation.rule.execution`, `oauth-client`.<br><br>Each scope supports `:read` and `:write` modifiers (e.g. `project:read`); without a modifier the scope grants both',
262
+ routing: {
263
+ send: {
264
+ property: 'scopes',
265
+ propertyInDotNotation: false,
266
+ type: 'body',
267
+ value: '={{ $value.items?.map(i => i._value) || undefined }}'
268
+ }
269
+ },
270
+ displayOptions: {
271
+ show: {
272
+ resource: [
273
+ 'oAuthClients'
274
+ ],
275
+ operation: [
276
+ 'api.oauth-clients.post'
277
+ ]
278
+ }
279
+ },
280
+ typeOptions: {
281
+ multipleValues: true
282
+ },
283
+ placeholder: 'Add Item',
284
+ options: [
285
+ {
286
+ displayName: 'Items',
287
+ name: 'items',
288
+ values: [
289
+ {
290
+ displayName: 'Value',
291
+ name: '_value',
292
+ type: 'string',
293
+ default: ''
294
+ }
295
+ ]
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ displayName: 'Confidential',
301
+ name: 'confidential',
302
+ type: 'boolean',
303
+ default: true,
304
+ description: 'If `true`, the client gets a secret. If `false`, the client is public and authorizes with PKCE only. Default is `true`',
305
+ routing: {
306
+ send: {
307
+ property: 'confidential',
308
+ propertyInDotNotation: false,
309
+ type: 'body',
310
+ value: '={{ $value }}'
311
+ }
312
+ },
313
+ displayOptions: {
314
+ show: {
315
+ resource: [
316
+ 'oAuthClients'
317
+ ],
318
+ operation: [
319
+ 'api.oauth-clients.post'
320
+ ]
321
+ }
322
+ }
323
+ },
324
+ {
325
+ displayName: 'Client Id',
326
+ name: 'clientId',
327
+ required: true,
328
+ description: 'ID of the OAuth client. Get via [List OAuth Clients](#operation/api.oauth-clients.getMany)',
329
+ default: '',
330
+ type: 'string',
331
+ displayOptions: {
332
+ show: {
333
+ resource: [
334
+ 'oAuthClients'
335
+ ],
336
+ operation: [
337
+ 'api.oauth-clients.get'
338
+ ]
339
+ }
340
+ },
341
+ placeholder: 'dD03Ecs4yVxW0yDNqqw4'
342
+ },
343
+ {
344
+ displayName: 'Return All',
345
+ name: 'returnAll',
346
+ type: 'boolean',
347
+ default: true,
348
+ description: 'Whether to return all results or only up to a given limit',
349
+ displayOptions: {
350
+ show: {
351
+ resource: [
352
+ 'oAuthClients'
353
+ ],
354
+ operation: [
355
+ 'api.oauth-clients.getMany'
356
+ ]
357
+ }
358
+ }
359
+ }
360
+ ];
361
+ //# sourceMappingURL=oAuthClients.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oAuthClients.js","sourceRoot":"","sources":["../../../../../../nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.ts"],"names":[],"mappings":";;;AAIa,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,cAAc;iBACd;aACD;SACD;QACD,OAAO,EAAE;YACR;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;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4FAA4F;QACzG,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,cAAc;iBACd;gBACD,SAAS,EAAE;oBACV,uBAAuB;iBACvB;aACD;SACD;QACD,WAAW,EAAE,sBAAsB;KACnC;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,2DAA2D;QACxE,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,cAAc;iBACd;gBACD,SAAS,EAAE;oBACV,2BAA2B;iBAC3B;aACD;SACD;KACD;CACD,CAAC"}
@@ -16,6 +16,40 @@ exports.projectsProperties = [
16
16
  }
17
17
  },
18
18
  options: [
19
+ {
20
+ name: 'Upload Project Logo',
21
+ value: 'api.projects.logo.put',
22
+ action: 'Upload Project Logo',
23
+ description: '**Required scopes:** `project.settings` (Read and Write).\n\nReplaces the project logo with an image uploaded via [Add Storage](#operation/api.storages.post). Supported formats: JPEG, PNG, GIF, WebP. Maximum file size is 10 MB.',
24
+ routing: {
25
+ request: {
26
+ method: 'PUT',
27
+ url: '=/projects/{{$parameter["projectId"]}}/logo'
28
+ }
29
+ }
30
+ },
31
+ {
32
+ name: 'Delete Project Logo',
33
+ value: 'api.projects.logo.delete',
34
+ action: 'Delete Project Logo',
35
+ description: '**Required scopes:** `project.settings` (Read and Write).\n\nRemoves the project logo. The `logo` field of the project then returns `null`.',
36
+ routing: {
37
+ request: {
38
+ method: 'DELETE',
39
+ url: '=/projects/{{$parameter["projectId"]}}/logo'
40
+ },
41
+ output: {
42
+ postReceive: [
43
+ {
44
+ type: 'set',
45
+ properties: {
46
+ value: '={{ { "success": true } }}'
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ },
19
53
  {
20
54
  name: 'List Projects',
21
55
  value: 'api.projects.getMany',
@@ -310,7 +344,45 @@ exports.projectsProperties = [
310
344
  }
311
345
  }
312
346
  ],
313
- default: 'api.projects.getMany'
347
+ default: 'api.projects.logo.put'
348
+ },
349
+ {
350
+ displayName: 'PUT /projects/{projectId}/logo',
351
+ name: 'operation',
352
+ type: 'notice',
353
+ typeOptions: {
354
+ theme: 'info'
355
+ },
356
+ default: '',
357
+ displayOptions: {
358
+ show: {
359
+ resource: [
360
+ 'projects'
361
+ ],
362
+ operation: [
363
+ 'api.projects.logo.put'
364
+ ]
365
+ }
366
+ }
367
+ },
368
+ {
369
+ displayName: 'DELETE /projects/{projectId}/logo',
370
+ name: 'operation',
371
+ type: 'notice',
372
+ typeOptions: {
373
+ theme: 'info'
374
+ },
375
+ default: '',
376
+ displayOptions: {
377
+ show: {
378
+ resource: [
379
+ 'projects'
380
+ ],
381
+ operation: [
382
+ 'api.projects.logo.delete'
383
+ ]
384
+ }
385
+ }
314
386
  },
315
387
  {
316
388
  displayName: 'GET /projects',
@@ -635,6 +707,77 @@ exports.projectsProperties = [
635
707
  }
636
708
  }
637
709
  },
710
+ {
711
+ displayName: 'Project Id',
712
+ name: 'projectId',
713
+ required: true,
714
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
715
+ default: '',
716
+ type: 'options',
717
+ displayOptions: {
718
+ show: {
719
+ resource: [
720
+ 'projects'
721
+ ],
722
+ operation: [
723
+ 'api.projects.logo.put'
724
+ ]
725
+ }
726
+ },
727
+ typeOptions: {
728
+ loadOptionsMethod: 'getProjects'
729
+ }
730
+ },
731
+ {
732
+ displayName: 'Storage Id',
733
+ required: true,
734
+ name: 'storageId',
735
+ type: 'options',
736
+ default: '',
737
+ description: 'A unique identifier for the storage. Storage is where you add files, before they can be added to your organization. [More about Storage](#tag/Storage).',
738
+ routing: {
739
+ send: {
740
+ property: 'storageId',
741
+ propertyInDotNotation: false,
742
+ type: 'body',
743
+ value: '={{ $value }}'
744
+ }
745
+ },
746
+ displayOptions: {
747
+ show: {
748
+ resource: [
749
+ 'projects'
750
+ ],
751
+ operation: [
752
+ 'api.projects.logo.put'
753
+ ]
754
+ }
755
+ },
756
+ typeOptions: {
757
+ loadOptionsMethod: 'getStorages'
758
+ }
759
+ },
760
+ {
761
+ displayName: 'Project Id',
762
+ name: 'projectId',
763
+ required: true,
764
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
765
+ default: '',
766
+ type: 'options',
767
+ displayOptions: {
768
+ show: {
769
+ resource: [
770
+ 'projects'
771
+ ],
772
+ operation: [
773
+ 'api.projects.logo.delete'
774
+ ]
775
+ }
776
+ },
777
+ typeOptions: {
778
+ loadOptionsMethod: 'getProjects'
779
+ }
780
+ },
638
781
  {
639
782
  displayName: 'Order By',
640
783
  name: 'orderBy',