@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.
Files changed (149) hide show
  1. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +62 -16
  2. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
  3. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js +1509 -301
  4. package/dist/nodes/Crowdin/properties/crowdin/fileBased/applications.js.map +1 -1
  5. package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.d.ts +2 -0
  6. package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.js +1243 -0
  7. package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.js.map +1 -0
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js +8 -3
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js.map +1 -1
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +15 -1
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js +9 -6
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js.map +1 -1
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.d.ts +2 -0
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.js +361 -0
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/oAuthClients.js.map +1 -0
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/organizationWebhooks.js +770 -81
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/organizationWebhooks.js.map +1 -1
  19. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +199 -15
  20. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
  21. package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js +7 -0
  22. package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js.map +1 -1
  23. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js +59 -31
  24. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js.map +1 -1
  25. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js +652 -11
  26. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js.map +1 -1
  27. package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js +1 -1
  28. package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js.map +1 -1
  29. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js +21 -0
  30. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js.map +1 -1
  31. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js +4 -3
  32. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js.map +1 -1
  33. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationStatus.js +94 -1
  34. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationStatus.js.map +1 -1
  35. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +1163 -30
  36. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
  37. package/dist/nodes/Crowdin/properties/crowdin/fileBased/users.js +678 -2
  38. package/dist/nodes/Crowdin/properties/crowdin/fileBased/users.js.map +1 -1
  39. package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js +909 -93
  40. package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js.map +1 -1
  41. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +62 -16
  42. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
  43. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js +1509 -301
  44. package/dist/nodes/Crowdin/properties/crowdin/stringBased/applications.js.map +1 -1
  45. package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js +2 -2
  46. package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js.map +1 -1
  47. package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.d.ts +2 -0
  48. package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.js +1243 -0
  49. package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.js.map +1 -0
  50. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js +8 -3
  51. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js.map +1 -1
  52. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +15 -1
  53. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  54. package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.d.ts +2 -0
  55. package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.js +361 -0
  56. package/dist/nodes/Crowdin/properties/crowdin/stringBased/oAuthClients.js.map +1 -0
  57. package/dist/nodes/Crowdin/properties/crowdin/stringBased/organizationWebhooks.js +770 -81
  58. package/dist/nodes/Crowdin/properties/crowdin/stringBased/organizationWebhooks.js.map +1 -1
  59. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +199 -15
  60. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
  61. package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js +7 -0
  62. package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js.map +1 -1
  63. package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js +579 -0
  64. package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js.map +1 -1
  65. package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js +1 -1
  66. package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js.map +1 -1
  67. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js +21 -0
  68. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js.map +1 -1
  69. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js +4 -3
  70. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js.map +1 -1
  71. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationStatus.js +1 -1
  72. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationStatus.js.map +1 -1
  73. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +1101 -30
  74. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
  75. package/dist/nodes/Crowdin/properties/crowdin/stringBased/users.js +678 -2
  76. package/dist/nodes/Crowdin/properties/crowdin/stringBased/users.js.map +1 -1
  77. package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js +909 -93
  78. package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js.map +1 -1
  79. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +63 -21
  80. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
  81. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js +1513 -305
  82. package/dist/nodes/Crowdin/properties/enterprise/fileBased/applications.js.map +1 -1
  83. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js +7 -2
  84. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js.map +1 -1
  85. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +7 -0
  86. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  87. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js +9 -6
  88. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js.map +1 -1
  89. package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.d.ts +2 -0
  90. package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.js +361 -0
  91. package/dist/nodes/Crowdin/properties/enterprise/fileBased/oAuthClients.js.map +1 -0
  92. package/dist/nodes/Crowdin/properties/enterprise/fileBased/organizationWebhooks.js +770 -81
  93. package/dist/nodes/Crowdin/properties/enterprise/fileBased/organizationWebhooks.js.map +1 -1
  94. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +390 -7
  95. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  96. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +59 -31
  97. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js.map +1 -1
  98. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js +652 -11
  99. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js.map +1 -1
  100. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js +3 -2
  101. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js.map +1 -1
  102. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationStatus.js +94 -1
  103. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationStatus.js.map +1 -1
  104. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +1163 -30
  105. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
  106. package/dist/nodes/Crowdin/properties/enterprise/fileBased/users.js +7 -0
  107. package/dist/nodes/Crowdin/properties/enterprise/fileBased/users.js.map +1 -1
  108. package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js +909 -93
  109. package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js.map +1 -1
  110. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +63 -21
  111. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
  112. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js +1513 -305
  113. package/dist/nodes/Crowdin/properties/enterprise/stringBased/applications.js.map +1 -1
  114. package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js +2 -2
  115. package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js.map +1 -1
  116. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js +7 -2
  117. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js.map +1 -1
  118. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js +7 -0
  119. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
  120. package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.d.ts +2 -0
  121. package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.js +361 -0
  122. package/dist/nodes/Crowdin/properties/enterprise/stringBased/oAuthClients.js.map +1 -0
  123. package/dist/nodes/Crowdin/properties/enterprise/stringBased/organizationWebhooks.js +770 -81
  124. package/dist/nodes/Crowdin/properties/enterprise/stringBased/organizationWebhooks.js.map +1 -1
  125. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +390 -7
  126. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  127. package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js +579 -0
  128. package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js.map +1 -1
  129. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js +3 -2
  130. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js.map +1 -1
  131. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationStatus.js +1 -1
  132. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationStatus.js.map +1 -1
  133. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +1101 -30
  134. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
  135. package/dist/nodes/Crowdin/properties/enterprise/stringBased/users.js +7 -0
  136. package/dist/nodes/Crowdin/properties/enterprise/stringBased/users.js.map +1 -1
  137. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js +909 -93
  138. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js.map +1 -1
  139. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js +25 -0
  140. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js.map +1 -1
  141. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js +25 -0
  142. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js.map +1 -1
  143. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js +25 -0
  144. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js.map +1 -1
  145. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js +25 -0
  146. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js.map +1 -1
  147. package/dist/package.json +1 -1
  148. package/dist/tsconfig.tsbuildinfo +1 -1
  149. package/package.json +1 -1
@@ -104,6 +104,94 @@ exports.webhooksProperties = [
104
104
  ]
105
105
  }
106
106
  }
107
+ },
108
+ {
109
+ name: 'List Webhook Deliveries',
110
+ value: 'api.projects.webhooks.deliveries.getMany',
111
+ action: 'List Webhook Deliveries',
112
+ description: '**Required scopes:** `project.webhook` (Read only).\n\nReturns the deliveries of a webhook, the most recent first. Deliveries are kept for 30 days. Test requests are not listed.',
113
+ routing: {
114
+ request: {
115
+ method: 'GET',
116
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/deliveries'
117
+ },
118
+ send: {
119
+ paginate: '={{$parameter["returnAll"]}}'
120
+ },
121
+ output: {
122
+ postReceive: [
123
+ {
124
+ type: 'rootProperty',
125
+ enabled: '={{!$parameter["returnAll"]}}',
126
+ properties: {
127
+ property: 'data'
128
+ }
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ },
134
+ {
135
+ name: 'Get Webhook Delivery',
136
+ value: 'api.projects.webhooks.deliveries.get',
137
+ action: 'Get Webhook Delivery',
138
+ description: '**Required scopes:** `project.webhook` (Read only).\n\nReturns a single webhook delivery with its request headers and payload. Header values that can carry credentials are masked. Deliveries of a deleted webhook are available by the ID of that webhook.',
139
+ routing: {
140
+ request: {
141
+ method: 'GET',
142
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/deliveries/{{$parameter["deliveryId"]}}'
143
+ }
144
+ }
145
+ },
146
+ {
147
+ name: 'List All Webhook Deliveries',
148
+ value: 'api.projects.webhooks.deliveries.getAll',
149
+ action: 'List All Webhook Deliveries',
150
+ description: '**Required scopes:** `project.webhook` (Read only).\n\nReturns the deliveries of all project webhooks, including deleted webhooks, the most recent first. Deliveries are kept for 30 days. Test requests are not listed.',
151
+ routing: {
152
+ request: {
153
+ method: 'GET',
154
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/deliveries'
155
+ },
156
+ send: {
157
+ paginate: '={{$parameter["returnAll"]}}'
158
+ },
159
+ output: {
160
+ postReceive: [
161
+ {
162
+ type: 'rootProperty',
163
+ enabled: '={{!$parameter["returnAll"]}}',
164
+ properties: {
165
+ property: 'data'
166
+ }
167
+ }
168
+ ]
169
+ }
170
+ }
171
+ },
172
+ {
173
+ name: 'Resend Webhook Delivery',
174
+ value: 'api.projects.webhooks.deliveries.resend.post',
175
+ action: 'Resend Webhook Delivery',
176
+ description: '**Required scopes:** `project.webhook` (Read and Write).\n\nSends the payload of a delivery again to the URL it was sent to, with the request method and content type of that delivery and the current headers of the webhook, and returns the new delivery. A delivery of a deleted webhook is resent without custom headers. A failure of the target server is returned as a delivery with `status` set to `failed`, not as an error.\n\n__Note:__ The target system may act on the payload again',
177
+ routing: {
178
+ request: {
179
+ method: 'POST',
180
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/deliveries/{{$parameter["deliveryId"]}}/resend'
181
+ }
182
+ }
183
+ },
184
+ {
185
+ name: 'Test Webhook',
186
+ value: 'api.projects.webhooks.tests.post',
187
+ action: 'Test Webhook',
188
+ description: '**Required scopes:** `project.webhook` (Read and Write).\n\nSends a sample payload of one webhook event to the saved webhook URL, with the saved request method, content type and headers, and returns the answer of the target server. A failure of the target server is returned as data with `status` set to `failed`, not as an error. Test requests are not added to the webhook deliveries. The request body can be omitted.\n\n__Note:__ The target system may act on the sample payload',
189
+ routing: {
190
+ request: {
191
+ method: 'POST',
192
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/tests'
193
+ }
194
+ }
107
195
  }
108
196
  ],
109
197
  default: 'api.projects.webhooks.getMany'
@@ -203,6 +291,101 @@ exports.webhooksProperties = [
203
291
  }
204
292
  }
205
293
  },
294
+ {
295
+ displayName: 'GET /projects/{projectId}/webhooks/{webhookId}/deliveries',
296
+ name: 'operation',
297
+ type: 'notice',
298
+ typeOptions: {
299
+ theme: 'info'
300
+ },
301
+ default: '',
302
+ displayOptions: {
303
+ show: {
304
+ resource: [
305
+ 'webhooks'
306
+ ],
307
+ operation: [
308
+ 'api.projects.webhooks.deliveries.getMany'
309
+ ]
310
+ }
311
+ }
312
+ },
313
+ {
314
+ displayName: 'GET /projects/{projectId}/webhooks/{webhookId}/deliveries/{deliveryId}',
315
+ name: 'operation',
316
+ type: 'notice',
317
+ typeOptions: {
318
+ theme: 'info'
319
+ },
320
+ default: '',
321
+ displayOptions: {
322
+ show: {
323
+ resource: [
324
+ 'webhooks'
325
+ ],
326
+ operation: [
327
+ 'api.projects.webhooks.deliveries.get'
328
+ ]
329
+ }
330
+ }
331
+ },
332
+ {
333
+ displayName: 'GET /projects/{projectId}/webhooks/deliveries',
334
+ name: 'operation',
335
+ type: 'notice',
336
+ typeOptions: {
337
+ theme: 'info'
338
+ },
339
+ default: '',
340
+ displayOptions: {
341
+ show: {
342
+ resource: [
343
+ 'webhooks'
344
+ ],
345
+ operation: [
346
+ 'api.projects.webhooks.deliveries.getAll'
347
+ ]
348
+ }
349
+ }
350
+ },
351
+ {
352
+ displayName: 'POST /projects/{projectId}/webhooks/{webhookId}/deliveries/{deliveryId}/resend',
353
+ name: 'operation',
354
+ type: 'notice',
355
+ typeOptions: {
356
+ theme: 'info'
357
+ },
358
+ default: '',
359
+ displayOptions: {
360
+ show: {
361
+ resource: [
362
+ 'webhooks'
363
+ ],
364
+ operation: [
365
+ 'api.projects.webhooks.deliveries.resend.post'
366
+ ]
367
+ }
368
+ }
369
+ },
370
+ {
371
+ displayName: 'POST /projects/{projectId}/webhooks/{webhookId}/tests',
372
+ name: 'operation',
373
+ type: 'notice',
374
+ typeOptions: {
375
+ theme: 'info'
376
+ },
377
+ default: '',
378
+ displayOptions: {
379
+ show: {
380
+ resource: [
381
+ 'webhooks'
382
+ ],
383
+ operation: [
384
+ 'api.projects.webhooks.tests.post'
385
+ ]
386
+ }
387
+ }
388
+ },
206
389
  {
207
390
  displayName: 'Project Id',
208
391
  name: 'projectId',
@@ -336,7 +519,7 @@ exports.webhooksProperties = [
336
519
  name: 'events',
337
520
  type: 'multiOptions',
338
521
  default: [],
339
- description: 'You can configure webhooks for the following events:\n * \'file.added\' — project file is added\n * \'file.updated\' - project file is updated\n * \'file.reverted\' - project file is reverted\n * \'file.deleted\' - project file is deleted\n * \'file.translated\' — project file is fully translated\n * \'file.approved\' — project file is fully reviewed\n * \'file.qa.finished\' - project file QA check is finished\n * \'project.translated\' — all strings in project are translated\n * \'project.approved\' — all strings in project are approved\n * \'project.qa.finished\' — all strings in project are QA check is finished\n * \'project.built\' - project are successfully built\n * \'preTranslation.completed\' - Auto-Translation finishes, fails or is canceled\n * \'translation.updated\' — final translation of string is updated (using Replace in suggestions feature)\n * \'string.added\' — source string is added\n * \'string.updated\' — source string is updated\n * \'string.deleted\' — source string is deleted\n * \'stringComment.created\' - string comment/issue is added\n * \'stringComment.updated\' - string comment/issue is updated\n * \'stringComment.deleted\' - string comment/issue is deleted\n * \'stringComment.restored\' - string comment/issue is restored\n * \'suggestion.added\' — one of source strings is translated\n * \'suggestion.updated\' — translation for source string is updated (using Replace in suggestions feature)\n * \'suggestion.deleted\' — one of translations is deleted\n * \'suggestion.approved\' — translation for string is approved\n * \'suggestion.disapproved\' — approval for previously added translation is removed\n * \'task.added\' - task is added\n * \'task.statusChanged\' - task status was changed\n * \'task.updated\' - task is updated\n * \'task.deleted\' - task is deleted',
522
+ description: 'You can configure webhooks for the following events:\n * \'file.added\' — project file is added\n * \'file.updated\' - project file is updated\n * \'file.reverted\' - project file is reverted\n * \'file.deleted\' - project file is deleted\n * \'file.translated\' — project file is fully translated\n * \'file.approved\' — project file is fully reviewed\n * \'file.qa.finished\' - project file QA check is finished\n * \'project.translated\' — all strings in project are translated\n * \'project.approved\' — all strings in project are approved\n * \'project.qa.finished\' — all strings in project are QA check is finished\n * \'project.built\' - project are successfully built\n * \'preTranslation.completed\' - Auto-Translation finishes, fails or is canceled\n * \'translation.updated\' — final translation of string is updated (using Replace in suggestions feature)\n * \'string.added\' — source string is added\n * \'string.updated\' — source string is updated\n * \'string.deleted\' — source string is deleted\n * \'string.labelsAssigned\' — labels are assigned to source string\n * \'string.labelsUnassigned\' — labels are unassigned from source string\n * \'label.created\' — label is created\n * \'label.updated\' — label is updated\n * \'label.deleted\' — label is deleted\n * \'stringComment.created\' - string comment/issue is added\n * \'stringComment.updated\' - string comment/issue is updated\n * \'stringComment.deleted\' - string comment/issue is deleted\n * \'stringComment.restored\' - string comment/issue is restored\n * \'suggestion.added\' — one of source strings is translated\n * \'suggestion.updated\' — translation for source string is updated (using Replace in suggestions feature)\n * \'suggestion.deleted\' — one of translations is deleted\n * \'suggestion.approved\' — translation for string is approved\n * \'suggestion.disapproved\' — approval for previously added translation is removed\n * \'task.added\' - task is added\n * \'task.statusChanged\' - task status was changed\n * \'task.updated\' - task is updated\n * \'task.deleted\' - task is deleted',
340
523
  routing: {
341
524
  send: {
342
525
  property: 'events',
@@ -420,6 +603,26 @@ exports.webhooksProperties = [
420
603
  name: 'string.deleted',
421
604
  value: 'string.deleted'
422
605
  },
606
+ {
607
+ name: 'string.labelsAssigned',
608
+ value: 'string.labelsAssigned'
609
+ },
610
+ {
611
+ name: 'string.labelsUnassigned',
612
+ value: 'string.labelsUnassigned'
613
+ },
614
+ {
615
+ name: 'label.created',
616
+ value: 'label.created'
617
+ },
618
+ {
619
+ name: 'label.updated',
620
+ value: 'label.updated'
621
+ },
622
+ {
623
+ name: 'label.deleted',
624
+ value: 'label.deleted'
625
+ },
423
626
  {
424
627
  name: 'stringComment.created',
425
628
  value: 'stringComment.created'
@@ -607,7 +810,7 @@ exports.webhooksProperties = [
607
810
  displayName: 'Headers',
608
811
  name: 'headers',
609
812
  type: 'json',
610
- default: '{\n "Authorization": "Bearer <ACCESS_TOKEN>"\n}',
813
+ default: '{}',
611
814
  description: 'Webhook headers',
612
815
  routing: {
613
816
  send: {
@@ -626,20 +829,21 @@ exports.webhooksProperties = [
626
829
  'api.projects.webhooks.post'
627
830
  ]
628
831
  }
629
- }
832
+ },
833
+ placeholder: '{"Authorization":"Bearer <ACCESS_TOKEN>"}'
630
834
  },
631
835
  {
632
836
  displayName: 'Payload',
633
837
  name: 'payload',
634
- type: 'fixedCollection',
635
- default: {},
636
- description: 'Custom webhook payload',
838
+ type: 'json',
839
+ default: '{}',
840
+ description: 'Custom webhook payload. Read more about [Events payload examples](https://developer.crowdin.com/webhooks). Additionally, you can check out Events payloads while creating webhooks via UI in your Crowdin project > Tools tab > Webhooks section > click Add webhook.',
637
841
  routing: {
638
842
  send: {
639
843
  property: 'payload',
640
844
  propertyInDotNotation: false,
641
845
  type: 'body',
642
- value: '={{ $value.fields || undefined }}'
846
+ value: '={{ JSON.parse($value) }}'
643
847
  }
644
848
  },
645
849
  displayOptions: {
@@ -652,22 +856,7 @@ exports.webhooksProperties = [
652
856
  ]
653
857
  }
654
858
  },
655
- placeholder: 'Add Field',
656
- options: [
657
- {
658
- displayName: 'Fields',
659
- name: 'fields',
660
- values: [
661
- {
662
- displayName: 'Created',
663
- name: 'json:project.created',
664
- type: 'json',
665
- default: '{}',
666
- description: 'Read more about [Events payload examples](https://developer.crowdin.com/webhooks). Additionally, you can check out Events payloads while creating webhooks via UI in your Crowdin profile settings > Webhooks tab > click Add webhook.'
667
- }
668
- ]
669
- }
670
- ]
859
+ placeholder: '{"string.added":{"event":"{{event}}","string":{"id":"{{stringId}}","identifier":"{{stringIdentifier}}","key":"{{stringKey}}","text":"{{stringText}}","type":"{{stringType}}","context":"{{stringContext}}","maxLength":"{{stringMaxLength}}","isHidden":"{{stringIsHidden}}","isDuplicate":"{{stringIsDuplicate}}","masterStringId":"{{stringMasterStringId}}","revision":"{{stringRevision}}","hasPlurals":"{{stringHasPlurals}}","plurals":"{{stringPlurals}}","labelIds":"{{stringLabelIds}}","url":"{{stringUrl}}","createdAt":"{{stringCreatedAt}}","updatedAt":"{{stringUpdatedAt}}","file":{"id":"{{fileId}}","name":"{{fileName}}","title":"{{fileTitle}}","type":"{{fileType}}","path":"{{filePath}}","status":"{{fileStatus}}","revision":"{{fileRevision}}","branchId":"{{branchId}}","directoryId":"{{directoryId}}"},"project":{"id":"{{projectId}}","userId":"{{projectUserId}}","sourceLanguageId":"{{projectSourceLanguageId}}","targetLanguageIds":"{{projectTargetLanguageIds}}","identifier":"{{projectIdentifier}}","name":"{{projectName}}","createdAt":"{{projectCreatedAt}}","updatedAt":"{{projectUpdatedAt}}","lastActivity":"{{projectLastActivity}}","description":"{{projectDescription}}","url":"{{projectUrl}}","cname":"{{projectCname}}","logo":"{{projectLogo}}"}},"user":{"id":"{{userId}}","username":"{{userUsername}}","fullName":"{{userFullName}}","avatarUrl":"{{userAvatarUrl}}"}}}'
671
860
  },
672
861
  {
673
862
  displayName: 'Project Id',
@@ -805,75 +994,662 @@ exports.webhooksProperties = [
805
994
  }
806
995
  },
807
996
  {
808
- displayName: 'Update Fields',
809
- name: 'updateFields',
810
- type: 'collection',
811
- placeholder: 'Add Field',
812
- default: {},
997
+ displayName: 'Project Id',
998
+ name: 'projectId',
999
+ required: true,
1000
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1001
+ default: '',
1002
+ type: 'options',
813
1003
  displayOptions: {
814
1004
  show: {
815
1005
  resource: [
816
1006
  'webhooks'
817
1007
  ],
818
1008
  operation: [
819
- 'api.projects.webhooks.patch'
1009
+ 'api.projects.webhooks.deliveries.getMany'
1010
+ ]
1011
+ }
1012
+ },
1013
+ typeOptions: {
1014
+ loadOptionsMethod: 'getProjects'
1015
+ }
1016
+ },
1017
+ {
1018
+ displayName: 'Webhook Id',
1019
+ name: 'webhookId',
1020
+ required: true,
1021
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1022
+ default: '',
1023
+ type: 'options',
1024
+ displayOptions: {
1025
+ show: {
1026
+ resource: [
1027
+ 'webhooks'
1028
+ ],
1029
+ operation: [
1030
+ 'api.projects.webhooks.deliveries.getMany'
820
1031
  ]
821
1032
  }
822
1033
  },
1034
+ typeOptions: {
1035
+ loadOptionsMethod: 'getProjectWebhooks',
1036
+ loadOptionsDependsOn: [
1037
+ 'projectId'
1038
+ ]
1039
+ }
1040
+ },
1041
+ {
1042
+ displayName: 'Status',
1043
+ name: 'status',
1044
+ description: 'Filter results to deliveries with the given status. One of: `success` for a 2xx or 304 answer of the target server, `failed` for any other answer or no answer',
1045
+ default: '',
1046
+ type: 'options',
823
1047
  options: [
824
1048
  {
825
- displayName: 'Name',
826
- name: 'name',
827
- type: 'string',
828
- default: '',
829
- description: 'Webhook name',
830
- placeholder: 'Proofread'
831
- },
832
- {
833
- displayName: 'Is Active',
834
- name: 'isActive',
835
- type: 'boolean',
836
- default: true,
837
- description: 'Defines whether webhook is active'
1049
+ name: '-',
1050
+ value: ''
838
1051
  },
839
1052
  {
840
- displayName: 'Batching Enabled',
841
- name: 'batchingEnabled',
842
- type: 'boolean',
843
- default: false,
844
- description: 'Defines whether webhook batching is enabled'
1053
+ name: 'success',
1054
+ value: 'success'
845
1055
  },
846
1056
  {
847
- displayName: 'Content Type',
848
- name: 'contentType',
849
- type: 'options',
850
- default: '',
851
- description: 'Webhook content type',
852
- options: [
853
- {
854
- name: '-',
855
- value: ''
856
- },
857
- {
858
- name: 'multipart/form-data',
859
- value: 'multipart/form-data'
860
- },
861
- {
862
- name: 'application/json',
863
- value: 'application/json'
864
- },
865
- {
866
- name: 'application/x-www-form-urlencoded',
867
- value: 'application/x-www-form-urlencoded'
868
- }
869
- ]
1057
+ name: 'failed',
1058
+ value: 'failed'
1059
+ }
1060
+ ],
1061
+ routing: {
1062
+ send: {
1063
+ type: 'query',
1064
+ property: 'status',
1065
+ value: '={{ $value || undefined }}',
1066
+ propertyInDotNotation: false
1067
+ }
1068
+ },
1069
+ displayOptions: {
1070
+ show: {
1071
+ resource: [
1072
+ 'webhooks'
1073
+ ],
1074
+ operation: [
1075
+ 'api.projects.webhooks.deliveries.getMany'
1076
+ ]
1077
+ }
1078
+ }
1079
+ },
1080
+ {
1081
+ displayName: 'Events',
1082
+ name: 'events',
1083
+ description: 'Filter results to deliveries of the given events. It can be one event or a list of comma-separated ones',
1084
+ default: '',
1085
+ type: 'string',
1086
+ routing: {
1087
+ send: {
1088
+ type: 'query',
1089
+ property: 'events',
1090
+ value: '={{ $value || undefined }}',
1091
+ propertyInDotNotation: false
1092
+ }
1093
+ },
1094
+ displayOptions: {
1095
+ show: {
1096
+ resource: [
1097
+ 'webhooks'
1098
+ ],
1099
+ operation: [
1100
+ 'api.projects.webhooks.deliveries.getMany'
1101
+ ]
1102
+ }
1103
+ },
1104
+ placeholder: 'file.translated,file.approved'
1105
+ },
1106
+ {
1107
+ displayName: 'Created After',
1108
+ name: 'dateTime:createdAfter',
1109
+ description: 'Filter results to deliveries sent at or after the given date, in ISO 8601 format',
1110
+ default: '',
1111
+ type: 'dateTime',
1112
+ routing: {
1113
+ send: {
1114
+ type: 'query',
1115
+ property: 'createdAfter',
1116
+ value: '={{ $value || undefined }}',
1117
+ propertyInDotNotation: false
1118
+ }
1119
+ },
1120
+ displayOptions: {
1121
+ show: {
1122
+ resource: [
1123
+ 'webhooks'
1124
+ ],
1125
+ operation: [
1126
+ 'api.projects.webhooks.deliveries.getMany'
1127
+ ]
1128
+ }
1129
+ },
1130
+ placeholder: '2026-09-28T00:00:00+00:00'
1131
+ },
1132
+ {
1133
+ displayName: 'Created Before',
1134
+ name: 'dateTime:createdBefore',
1135
+ description: 'Filter results to deliveries sent at or before the given date, in ISO 8601 format',
1136
+ default: '',
1137
+ type: 'dateTime',
1138
+ routing: {
1139
+ send: {
1140
+ type: 'query',
1141
+ property: 'createdBefore',
1142
+ value: '={{ $value || undefined }}',
1143
+ propertyInDotNotation: false
1144
+ }
1145
+ },
1146
+ displayOptions: {
1147
+ show: {
1148
+ resource: [
1149
+ 'webhooks'
1150
+ ],
1151
+ operation: [
1152
+ 'api.projects.webhooks.deliveries.getMany'
1153
+ ]
1154
+ }
1155
+ },
1156
+ placeholder: '2026-09-29T00:00:00+00:00'
1157
+ },
1158
+ {
1159
+ displayName: 'Limit',
1160
+ name: 'limit',
1161
+ description: 'Max number of results to return',
1162
+ default: 50,
1163
+ type: 'number',
1164
+ routing: {
1165
+ send: {
1166
+ type: 'query',
1167
+ property: 'limit',
1168
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
1169
+ propertyInDotNotation: false
1170
+ }
1171
+ },
1172
+ displayOptions: {
1173
+ show: {
1174
+ resource: [
1175
+ 'webhooks'
1176
+ ],
1177
+ operation: [
1178
+ 'api.projects.webhooks.deliveries.getMany'
1179
+ ],
1180
+ returnAll: [
1181
+ false
1182
+ ]
1183
+ }
1184
+ },
1185
+ typeOptions: {
1186
+ minValue: 1
1187
+ }
1188
+ },
1189
+ {
1190
+ displayName: 'Project Id',
1191
+ name: 'projectId',
1192
+ required: true,
1193
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1194
+ default: '',
1195
+ type: 'options',
1196
+ displayOptions: {
1197
+ show: {
1198
+ resource: [
1199
+ 'webhooks'
1200
+ ],
1201
+ operation: [
1202
+ 'api.projects.webhooks.deliveries.get'
1203
+ ]
1204
+ }
1205
+ },
1206
+ typeOptions: {
1207
+ loadOptionsMethod: 'getProjects'
1208
+ }
1209
+ },
1210
+ {
1211
+ displayName: 'Webhook Id',
1212
+ name: 'webhookId',
1213
+ required: true,
1214
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1215
+ default: '',
1216
+ type: 'options',
1217
+ displayOptions: {
1218
+ show: {
1219
+ resource: [
1220
+ 'webhooks'
1221
+ ],
1222
+ operation: [
1223
+ 'api.projects.webhooks.deliveries.get'
1224
+ ]
1225
+ }
1226
+ },
1227
+ typeOptions: {
1228
+ loadOptionsMethod: 'getProjectWebhooks',
1229
+ loadOptionsDependsOn: [
1230
+ 'projectId'
1231
+ ]
1232
+ }
1233
+ },
1234
+ {
1235
+ displayName: 'Delivery Id',
1236
+ name: 'deliveryId',
1237
+ required: true,
1238
+ description: 'ID of the webhook delivery. Get via [List Webhook Deliveries](#operation/api.projects.webhooks.deliveries.getMany) or [List All Webhook Deliveries](#operation/api.projects.webhooks.deliveries.getAll)',
1239
+ default: undefined,
1240
+ type: 'number',
1241
+ displayOptions: {
1242
+ show: {
1243
+ resource: [
1244
+ 'webhooks'
1245
+ ],
1246
+ operation: [
1247
+ 'api.projects.webhooks.deliveries.get'
1248
+ ]
1249
+ }
1250
+ },
1251
+ placeholder: '9051'
1252
+ },
1253
+ {
1254
+ displayName: 'Project Id',
1255
+ name: 'projectId',
1256
+ required: true,
1257
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1258
+ default: '',
1259
+ type: 'options',
1260
+ displayOptions: {
1261
+ show: {
1262
+ resource: [
1263
+ 'webhooks'
1264
+ ],
1265
+ operation: [
1266
+ 'api.projects.webhooks.deliveries.getAll'
1267
+ ]
1268
+ }
1269
+ },
1270
+ typeOptions: {
1271
+ loadOptionsMethod: 'getProjects'
1272
+ }
1273
+ },
1274
+ {
1275
+ displayName: 'Webhook Ids',
1276
+ name: 'webhookIds',
1277
+ description: 'Filter results to deliveries of the given webhooks, including deleted ones. It can be one ID or a list of comma-separated ID values. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1278
+ default: '',
1279
+ type: 'string',
1280
+ routing: {
1281
+ send: {
1282
+ type: 'query',
1283
+ property: 'webhookIds',
1284
+ value: '={{ $value || undefined }}',
1285
+ propertyInDotNotation: false
1286
+ }
1287
+ },
1288
+ displayOptions: {
1289
+ show: {
1290
+ resource: [
1291
+ 'webhooks'
1292
+ ],
1293
+ operation: [
1294
+ 'api.projects.webhooks.deliveries.getAll'
1295
+ ]
1296
+ }
1297
+ },
1298
+ placeholder: '4,7'
1299
+ },
1300
+ {
1301
+ displayName: 'Status',
1302
+ name: 'status',
1303
+ description: 'Filter results to deliveries with the given status. One of: `success` for a 2xx or 304 answer of the target server, `failed` for any other answer or no answer',
1304
+ default: '',
1305
+ type: 'options',
1306
+ options: [
1307
+ {
1308
+ name: '-',
1309
+ value: ''
1310
+ },
1311
+ {
1312
+ name: 'success',
1313
+ value: 'success'
1314
+ },
1315
+ {
1316
+ name: 'failed',
1317
+ value: 'failed'
1318
+ }
1319
+ ],
1320
+ routing: {
1321
+ send: {
1322
+ type: 'query',
1323
+ property: 'status',
1324
+ value: '={{ $value || undefined }}',
1325
+ propertyInDotNotation: false
1326
+ }
1327
+ },
1328
+ displayOptions: {
1329
+ show: {
1330
+ resource: [
1331
+ 'webhooks'
1332
+ ],
1333
+ operation: [
1334
+ 'api.projects.webhooks.deliveries.getAll'
1335
+ ]
1336
+ }
1337
+ }
1338
+ },
1339
+ {
1340
+ displayName: 'Events',
1341
+ name: 'events',
1342
+ description: 'Filter results to deliveries of the given events. It can be one event or a list of comma-separated ones',
1343
+ default: '',
1344
+ type: 'string',
1345
+ routing: {
1346
+ send: {
1347
+ type: 'query',
1348
+ property: 'events',
1349
+ value: '={{ $value || undefined }}',
1350
+ propertyInDotNotation: false
1351
+ }
1352
+ },
1353
+ displayOptions: {
1354
+ show: {
1355
+ resource: [
1356
+ 'webhooks'
1357
+ ],
1358
+ operation: [
1359
+ 'api.projects.webhooks.deliveries.getAll'
1360
+ ]
1361
+ }
1362
+ },
1363
+ placeholder: 'file.translated,file.approved'
1364
+ },
1365
+ {
1366
+ displayName: 'Created After',
1367
+ name: 'dateTime:createdAfter',
1368
+ description: 'Filter results to deliveries sent at or after the given date, in ISO 8601 format',
1369
+ default: '',
1370
+ type: 'dateTime',
1371
+ routing: {
1372
+ send: {
1373
+ type: 'query',
1374
+ property: 'createdAfter',
1375
+ value: '={{ $value || undefined }}',
1376
+ propertyInDotNotation: false
1377
+ }
1378
+ },
1379
+ displayOptions: {
1380
+ show: {
1381
+ resource: [
1382
+ 'webhooks'
1383
+ ],
1384
+ operation: [
1385
+ 'api.projects.webhooks.deliveries.getAll'
1386
+ ]
1387
+ }
1388
+ },
1389
+ placeholder: '2026-09-28T00:00:00+00:00'
1390
+ },
1391
+ {
1392
+ displayName: 'Created Before',
1393
+ name: 'dateTime:createdBefore',
1394
+ description: 'Filter results to deliveries sent at or before the given date, in ISO 8601 format',
1395
+ default: '',
1396
+ type: 'dateTime',
1397
+ routing: {
1398
+ send: {
1399
+ type: 'query',
1400
+ property: 'createdBefore',
1401
+ value: '={{ $value || undefined }}',
1402
+ propertyInDotNotation: false
1403
+ }
1404
+ },
1405
+ displayOptions: {
1406
+ show: {
1407
+ resource: [
1408
+ 'webhooks'
1409
+ ],
1410
+ operation: [
1411
+ 'api.projects.webhooks.deliveries.getAll'
1412
+ ]
1413
+ }
1414
+ },
1415
+ placeholder: '2026-09-29T00:00:00+00:00'
1416
+ },
1417
+ {
1418
+ displayName: 'Limit',
1419
+ name: 'limit',
1420
+ description: 'Max number of results to return',
1421
+ default: 50,
1422
+ type: 'number',
1423
+ routing: {
1424
+ send: {
1425
+ type: 'query',
1426
+ property: 'limit',
1427
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
1428
+ propertyInDotNotation: false
1429
+ }
1430
+ },
1431
+ displayOptions: {
1432
+ show: {
1433
+ resource: [
1434
+ 'webhooks'
1435
+ ],
1436
+ operation: [
1437
+ 'api.projects.webhooks.deliveries.getAll'
1438
+ ],
1439
+ returnAll: [
1440
+ false
1441
+ ]
1442
+ }
1443
+ },
1444
+ typeOptions: {
1445
+ minValue: 1
1446
+ }
1447
+ },
1448
+ {
1449
+ displayName: 'Project Id',
1450
+ name: 'projectId',
1451
+ required: true,
1452
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1453
+ default: '',
1454
+ type: 'options',
1455
+ displayOptions: {
1456
+ show: {
1457
+ resource: [
1458
+ 'webhooks'
1459
+ ],
1460
+ operation: [
1461
+ 'api.projects.webhooks.deliveries.resend.post'
1462
+ ]
1463
+ }
1464
+ },
1465
+ typeOptions: {
1466
+ loadOptionsMethod: 'getProjects'
1467
+ }
1468
+ },
1469
+ {
1470
+ displayName: 'Webhook Id',
1471
+ name: 'webhookId',
1472
+ required: true,
1473
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1474
+ default: '',
1475
+ type: 'options',
1476
+ displayOptions: {
1477
+ show: {
1478
+ resource: [
1479
+ 'webhooks'
1480
+ ],
1481
+ operation: [
1482
+ 'api.projects.webhooks.deliveries.resend.post'
1483
+ ]
1484
+ }
1485
+ },
1486
+ typeOptions: {
1487
+ loadOptionsMethod: 'getProjectWebhooks',
1488
+ loadOptionsDependsOn: [
1489
+ 'projectId'
1490
+ ]
1491
+ }
1492
+ },
1493
+ {
1494
+ displayName: 'Delivery Id',
1495
+ name: 'deliveryId',
1496
+ required: true,
1497
+ description: 'ID of the webhook delivery. Get via [List Webhook Deliveries](#operation/api.projects.webhooks.deliveries.getMany) or [List All Webhook Deliveries](#operation/api.projects.webhooks.deliveries.getAll)',
1498
+ default: undefined,
1499
+ type: 'number',
1500
+ displayOptions: {
1501
+ show: {
1502
+ resource: [
1503
+ 'webhooks'
1504
+ ],
1505
+ operation: [
1506
+ 'api.projects.webhooks.deliveries.resend.post'
1507
+ ]
1508
+ }
1509
+ },
1510
+ placeholder: '9051'
1511
+ },
1512
+ {
1513
+ displayName: 'Project Id',
1514
+ name: 'projectId',
1515
+ required: true,
1516
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1517
+ default: '',
1518
+ type: 'options',
1519
+ displayOptions: {
1520
+ show: {
1521
+ resource: [
1522
+ 'webhooks'
1523
+ ],
1524
+ operation: [
1525
+ 'api.projects.webhooks.tests.post'
1526
+ ]
1527
+ }
1528
+ },
1529
+ typeOptions: {
1530
+ loadOptionsMethod: 'getProjects'
1531
+ }
1532
+ },
1533
+ {
1534
+ displayName: 'Webhook Id',
1535
+ name: 'webhookId',
1536
+ required: true,
1537
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1538
+ default: '',
1539
+ type: 'options',
1540
+ displayOptions: {
1541
+ show: {
1542
+ resource: [
1543
+ 'webhooks'
1544
+ ],
1545
+ operation: [
1546
+ 'api.projects.webhooks.tests.post'
1547
+ ]
1548
+ }
1549
+ },
1550
+ typeOptions: {
1551
+ loadOptionsMethod: 'getProjectWebhooks',
1552
+ loadOptionsDependsOn: [
1553
+ 'projectId'
1554
+ ]
1555
+ }
1556
+ },
1557
+ {
1558
+ displayName: 'Event',
1559
+ name: 'event',
1560
+ type: 'string',
1561
+ default: '',
1562
+ description: 'Event to send a sample payload for. Must be one of the webhook `events`. Default is the first event of the webhook',
1563
+ routing: {
1564
+ send: {
1565
+ property: 'event',
1566
+ propertyInDotNotation: false,
1567
+ type: 'body',
1568
+ value: '={{ $value || undefined }}'
1569
+ }
1570
+ },
1571
+ displayOptions: {
1572
+ show: {
1573
+ resource: [
1574
+ 'webhooks'
1575
+ ],
1576
+ operation: [
1577
+ 'api.projects.webhooks.tests.post'
1578
+ ]
1579
+ }
1580
+ },
1581
+ placeholder: 'file.translated'
1582
+ },
1583
+ {
1584
+ displayName: 'Update Fields',
1585
+ name: 'updateFields',
1586
+ type: 'collection',
1587
+ placeholder: 'Add Field',
1588
+ default: {},
1589
+ displayOptions: {
1590
+ show: {
1591
+ resource: [
1592
+ 'webhooks'
1593
+ ],
1594
+ operation: [
1595
+ 'api.projects.webhooks.patch'
1596
+ ]
1597
+ }
1598
+ },
1599
+ options: [
1600
+ {
1601
+ displayName: 'Name',
1602
+ name: 'name',
1603
+ type: 'string',
1604
+ default: '',
1605
+ description: 'Webhook name',
1606
+ placeholder: 'Proofread'
1607
+ },
1608
+ {
1609
+ displayName: 'Is Active',
1610
+ name: 'isActive',
1611
+ type: 'boolean',
1612
+ default: true,
1613
+ description: 'Defines whether webhook is active'
1614
+ },
1615
+ {
1616
+ displayName: 'Batching Enabled',
1617
+ name: 'batchingEnabled',
1618
+ type: 'boolean',
1619
+ default: false,
1620
+ description: 'Defines whether webhook batching is enabled'
1621
+ },
1622
+ {
1623
+ displayName: 'Content Type',
1624
+ name: 'contentType',
1625
+ type: 'options',
1626
+ default: '',
1627
+ description: 'Webhook content type',
1628
+ options: [
1629
+ {
1630
+ name: '-',
1631
+ value: ''
1632
+ },
1633
+ {
1634
+ name: 'multipart/form-data',
1635
+ value: 'multipart/form-data'
1636
+ },
1637
+ {
1638
+ name: 'application/json',
1639
+ value: 'application/json'
1640
+ },
1641
+ {
1642
+ name: 'application/x-www-form-urlencoded',
1643
+ value: 'application/x-www-form-urlencoded'
1644
+ }
1645
+ ]
870
1646
  },
871
1647
  {
872
1648
  displayName: 'Events',
873
1649
  name: 'events',
874
1650
  type: 'multiOptions',
875
1651
  default: [],
876
- description: 'You can configure webhooks for the following events:\n * \'file.added\' — project file is added\n * \'file.updated\' - project file is updated\n * \'file.reverted\' - project file is reverted\n * \'file.deleted\' - project file is deleted\n * \'file.translated\' — project file is fully translated\n * \'file.approved\' — project file is fully reviewed\n * \'file.qa.finished\' - project file QA check is finished\n * \'project.translated\' — all strings in project are translated\n * \'project.approved\' — all strings in project are approved\n * \'project.qa.finished\' — all strings in project are QA check is finished\n * \'project.built\' - project are successfully built\n * \'preTranslation.completed\' - Auto-Translation finishes, fails or is canceled\n * \'translation.updated\' — final translation of string is updated (using Replace in suggestions feature)\n * \'string.added\' — source string is added\n * \'string.updated\' — source string is updated\n * \'string.deleted\' — source string is deleted\n * \'stringComment.created\' - string comment/issue is added\n * \'stringComment.updated\' - string comment/issue is updated\n * \'stringComment.deleted\' - string comment/issue is deleted\n * \'stringComment.restored\' - string comment/issue is restored\n * \'suggestion.added\' — one of source strings is translated\n * \'suggestion.updated\' — translation for source string is updated (using Replace in suggestions feature)\n * \'suggestion.deleted\' — one of translations is deleted\n * \'suggestion.approved\' — translation for string is approved\n * \'suggestion.disapproved\' — approval for previously added translation is removed\n * \'task.added\' - task is added\n * \'task.statusChanged\' - task status was changed\n * \'task.updated\' - task is updated\n * \'task.deleted\' - task is deleted',
1652
+ description: 'You can configure webhooks for the following events:\n * \'file.added\' — project file is added\n * \'file.updated\' - project file is updated\n * \'file.reverted\' - project file is reverted\n * \'file.deleted\' - project file is deleted\n * \'file.translated\' — project file is fully translated\n * \'file.approved\' — project file is fully reviewed\n * \'file.qa.finished\' - project file QA check is finished\n * \'project.translated\' — all strings in project are translated\n * \'project.approved\' — all strings in project are approved\n * \'project.qa.finished\' — all strings in project are QA check is finished\n * \'project.built\' - project are successfully built\n * \'preTranslation.completed\' - Auto-Translation finishes, fails or is canceled\n * \'translation.updated\' — final translation of string is updated (using Replace in suggestions feature)\n * \'string.added\' — source string is added\n * \'string.updated\' — source string is updated\n * \'string.deleted\' — source string is deleted\n * \'string.labelsAssigned\' — labels are assigned to source string\n * \'string.labelsUnassigned\' — labels are unassigned from source string\n * \'label.created\' — label is created\n * \'label.updated\' — label is updated\n * \'label.deleted\' — label is deleted\n * \'stringComment.created\' - string comment/issue is added\n * \'stringComment.updated\' - string comment/issue is updated\n * \'stringComment.deleted\' - string comment/issue is deleted\n * \'stringComment.restored\' - string comment/issue is restored\n * \'suggestion.added\' — one of source strings is translated\n * \'suggestion.updated\' — translation for source string is updated (using Replace in suggestions feature)\n * \'suggestion.deleted\' — one of translations is deleted\n * \'suggestion.approved\' — translation for string is approved\n * \'suggestion.disapproved\' — approval for previously added translation is removed\n * \'task.added\' - task is added\n * \'task.statusChanged\' - task status was changed\n * \'task.updated\' - task is updated\n * \'task.deleted\' - task is deleted',
877
1653
  options: [
878
1654
  {
879
1655
  name: 'file.added',
@@ -939,6 +1715,26 @@ exports.webhooksProperties = [
939
1715
  name: 'string.deleted',
940
1716
  value: 'string.deleted'
941
1717
  },
1718
+ {
1719
+ name: 'string.labelsAssigned',
1720
+ value: 'string.labelsAssigned'
1721
+ },
1722
+ {
1723
+ name: 'string.labelsUnassigned',
1724
+ value: 'string.labelsUnassigned'
1725
+ },
1726
+ {
1727
+ name: 'label.created',
1728
+ value: 'label.created'
1729
+ },
1730
+ {
1731
+ name: 'label.updated',
1732
+ value: 'label.updated'
1733
+ },
1734
+ {
1735
+ name: 'label.deleted',
1736
+ value: 'label.deleted'
1737
+ },
942
1738
  {
943
1739
  name: 'stringComment.created',
944
1740
  value: 'stringComment.created'
@@ -997,8 +1793,9 @@ exports.webhooksProperties = [
997
1793
  displayName: 'Headers',
998
1794
  name: 'json:headers',
999
1795
  type: 'json',
1000
- default: '{\n "Authorization": "Bearer <ACCESS_TOKEN>"\n}',
1001
- description: 'Webhook headers'
1796
+ default: '{}',
1797
+ description: 'Webhook headers',
1798
+ placeholder: '{"Authorization":"Bearer <ACCESS_TOKEN>"}'
1002
1799
  },
1003
1800
  {
1004
1801
  displayName: 'Request Type',
@@ -1023,26 +1820,11 @@ exports.webhooksProperties = [
1023
1820
  },
1024
1821
  {
1025
1822
  displayName: 'Payload',
1026
- name: 'payload',
1027
- type: 'fixedCollection',
1028
- default: {},
1029
- description: 'Custom webhook payload',
1030
- placeholder: 'Add Field',
1031
- options: [
1032
- {
1033
- name: 'fields',
1034
- displayName: 'Fields',
1035
- values: [
1036
- {
1037
- displayName: 'Created',
1038
- name: 'json:project.created',
1039
- type: 'json',
1040
- default: '{}',
1041
- description: 'Read more about [Events payload examples](https://developer.crowdin.com/webhooks). Additionally, you can check out Events payloads while creating webhooks via UI in your Crowdin profile settings > Webhooks tab > click Add webhook.'
1042
- }
1043
- ]
1044
- }
1045
- ]
1823
+ name: 'json:payload',
1824
+ type: 'json',
1825
+ default: '{}',
1826
+ description: 'Custom webhook payload. Read more about [Events payload examples](https://developer.crowdin.com/webhooks). Additionally, you can check out Events payloads while creating webhooks via UI in your Crowdin project > Tools tab > Webhooks section > click Add webhook.',
1827
+ placeholder: '{"string.added":{"event":"{{event}}","string":{"id":"{{stringId}}","identifier":"{{stringIdentifier}}","key":"{{stringKey}}","text":"{{stringText}}","type":"{{stringType}}","context":"{{stringContext}}","maxLength":"{{stringMaxLength}}","isHidden":"{{stringIsHidden}}","isDuplicate":"{{stringIsDuplicate}}","masterStringId":"{{stringMasterStringId}}","revision":"{{stringRevision}}","hasPlurals":"{{stringHasPlurals}}","plurals":"{{stringPlurals}}","labelIds":"{{stringLabelIds}}","url":"{{stringUrl}}","createdAt":"{{stringCreatedAt}}","updatedAt":"{{stringUpdatedAt}}","file":{"id":"{{fileId}}","name":"{{fileName}}","title":"{{fileTitle}}","type":"{{fileType}}","path":"{{filePath}}","status":"{{fileStatus}}","revision":"{{fileRevision}}","branchId":"{{branchId}}","directoryId":"{{directoryId}}"},"project":{"id":"{{projectId}}","userId":"{{projectUserId}}","sourceLanguageId":"{{projectSourceLanguageId}}","targetLanguageIds":"{{projectTargetLanguageIds}}","identifier":"{{projectIdentifier}}","name":"{{projectName}}","createdAt":"{{projectCreatedAt}}","updatedAt":"{{projectUpdatedAt}}","lastActivity":"{{projectLastActivity}}","description":"{{projectDescription}}","url":"{{projectUrl}}","cname":"{{projectCname}}","logo":"{{projectLogo}}"}},"user":{"id":"{{userId}}","username":"{{userUsername}}","fullName":"{{userFullName}}","avatarUrl":"{{userAvatarUrl}}"}}}'
1046
1828
  }
1047
1829
  ],
1048
1830
  routing: {
@@ -1068,6 +1850,40 @@ exports.webhooksProperties = [
1068
1850
  ]
1069
1851
  }
1070
1852
  }
1853
+ },
1854
+ {
1855
+ displayName: 'Return All',
1856
+ name: 'returnAll',
1857
+ type: 'boolean',
1858
+ default: true,
1859
+ description: 'Whether to return all results or only up to a given limit',
1860
+ displayOptions: {
1861
+ show: {
1862
+ resource: [
1863
+ 'webhooks'
1864
+ ],
1865
+ operation: [
1866
+ 'api.projects.webhooks.deliveries.getMany'
1867
+ ]
1868
+ }
1869
+ }
1870
+ },
1871
+ {
1872
+ displayName: 'Return All',
1873
+ name: 'returnAll',
1874
+ type: 'boolean',
1875
+ default: true,
1876
+ description: 'Whether to return all results or only up to a given limit',
1877
+ displayOptions: {
1878
+ show: {
1879
+ resource: [
1880
+ 'webhooks'
1881
+ ],
1882
+ operation: [
1883
+ 'api.projects.webhooks.deliveries.getAll'
1884
+ ]
1885
+ }
1886
+ }
1071
1887
  }
1072
1888
  ];
1073
1889
  //# sourceMappingURL=webhooks.js.map