@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
@@ -99,6 +99,94 @@ exports.webhooksProperties = [
99
99
  ]
100
100
  }
101
101
  }
102
+ },
103
+ {
104
+ name: 'List Webhook Deliveries',
105
+ value: 'api.projects.webhooks.deliveries.getMany',
106
+ action: 'List Webhook Deliveries',
107
+ 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.',
108
+ routing: {
109
+ request: {
110
+ method: 'GET',
111
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/deliveries'
112
+ },
113
+ send: {
114
+ paginate: '={{$parameter["returnAll"]}}'
115
+ },
116
+ output: {
117
+ postReceive: [
118
+ {
119
+ type: 'rootProperty',
120
+ enabled: '={{!$parameter["returnAll"]}}',
121
+ properties: {
122
+ property: 'data'
123
+ }
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ },
129
+ {
130
+ name: 'Get Webhook Delivery',
131
+ value: 'api.projects.webhooks.deliveries.get',
132
+ action: 'Get Webhook Delivery',
133
+ 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.',
134
+ routing: {
135
+ request: {
136
+ method: 'GET',
137
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/deliveries/{{$parameter["deliveryId"]}}'
138
+ }
139
+ }
140
+ },
141
+ {
142
+ name: 'List All Webhook Deliveries',
143
+ value: 'api.projects.webhooks.deliveries.getAll',
144
+ action: 'List All Webhook Deliveries',
145
+ 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.',
146
+ routing: {
147
+ request: {
148
+ method: 'GET',
149
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/deliveries'
150
+ },
151
+ send: {
152
+ paginate: '={{$parameter["returnAll"]}}'
153
+ },
154
+ output: {
155
+ postReceive: [
156
+ {
157
+ type: 'rootProperty',
158
+ enabled: '={{!$parameter["returnAll"]}}',
159
+ properties: {
160
+ property: 'data'
161
+ }
162
+ }
163
+ ]
164
+ }
165
+ }
166
+ },
167
+ {
168
+ name: 'Resend Webhook Delivery',
169
+ value: 'api.projects.webhooks.deliveries.resend.post',
170
+ action: 'Resend Webhook Delivery',
171
+ 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',
172
+ routing: {
173
+ request: {
174
+ method: 'POST',
175
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/deliveries/{{$parameter["deliveryId"]}}/resend'
176
+ }
177
+ }
178
+ },
179
+ {
180
+ name: 'Test Webhook',
181
+ value: 'api.projects.webhooks.tests.post',
182
+ action: 'Test Webhook',
183
+ 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',
184
+ routing: {
185
+ request: {
186
+ method: 'POST',
187
+ url: '=/projects/{{$parameter["projectId"]}}/webhooks/{{$parameter["webhookId"]}}/tests'
188
+ }
189
+ }
102
190
  }
103
191
  ],
104
192
  default: 'api.projects.webhooks.getMany'
@@ -198,6 +286,101 @@ exports.webhooksProperties = [
198
286
  }
199
287
  }
200
288
  },
289
+ {
290
+ displayName: 'GET /projects/{projectId}/webhooks/{webhookId}/deliveries',
291
+ name: 'operation',
292
+ type: 'notice',
293
+ typeOptions: {
294
+ theme: 'info'
295
+ },
296
+ default: '',
297
+ displayOptions: {
298
+ show: {
299
+ resource: [
300
+ 'webhooks'
301
+ ],
302
+ operation: [
303
+ 'api.projects.webhooks.deliveries.getMany'
304
+ ]
305
+ }
306
+ }
307
+ },
308
+ {
309
+ displayName: 'GET /projects/{projectId}/webhooks/{webhookId}/deliveries/{deliveryId}',
310
+ name: 'operation',
311
+ type: 'notice',
312
+ typeOptions: {
313
+ theme: 'info'
314
+ },
315
+ default: '',
316
+ displayOptions: {
317
+ show: {
318
+ resource: [
319
+ 'webhooks'
320
+ ],
321
+ operation: [
322
+ 'api.projects.webhooks.deliveries.get'
323
+ ]
324
+ }
325
+ }
326
+ },
327
+ {
328
+ displayName: 'GET /projects/{projectId}/webhooks/deliveries',
329
+ name: 'operation',
330
+ type: 'notice',
331
+ typeOptions: {
332
+ theme: 'info'
333
+ },
334
+ default: '',
335
+ displayOptions: {
336
+ show: {
337
+ resource: [
338
+ 'webhooks'
339
+ ],
340
+ operation: [
341
+ 'api.projects.webhooks.deliveries.getAll'
342
+ ]
343
+ }
344
+ }
345
+ },
346
+ {
347
+ displayName: 'POST /projects/{projectId}/webhooks/{webhookId}/deliveries/{deliveryId}/resend',
348
+ name: 'operation',
349
+ type: 'notice',
350
+ typeOptions: {
351
+ theme: 'info'
352
+ },
353
+ default: '',
354
+ displayOptions: {
355
+ show: {
356
+ resource: [
357
+ 'webhooks'
358
+ ],
359
+ operation: [
360
+ 'api.projects.webhooks.deliveries.resend.post'
361
+ ]
362
+ }
363
+ }
364
+ },
365
+ {
366
+ displayName: 'POST /projects/{projectId}/webhooks/{webhookId}/tests',
367
+ name: 'operation',
368
+ type: 'notice',
369
+ typeOptions: {
370
+ theme: 'info'
371
+ },
372
+ default: '',
373
+ displayOptions: {
374
+ show: {
375
+ resource: [
376
+ 'webhooks'
377
+ ],
378
+ operation: [
379
+ 'api.projects.webhooks.tests.post'
380
+ ]
381
+ }
382
+ }
383
+ },
201
384
  {
202
385
  displayName: 'Project Id',
203
386
  name: 'projectId',
@@ -331,7 +514,7 @@ exports.webhooksProperties = [
331
514
  name: 'events',
332
515
  type: 'multiOptions',
333
516
  default: [],
334
- description: 'You can configure webhooks for the following events:\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 QA check are 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',
517
+ description: 'You can configure webhooks for the following events:\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 QA check are 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',
335
518
  routing: {
336
519
  send: {
337
520
  property: 'events',
@@ -387,6 +570,26 @@ exports.webhooksProperties = [
387
570
  name: 'string.deleted',
388
571
  value: 'string.deleted'
389
572
  },
573
+ {
574
+ name: 'string.labelsAssigned',
575
+ value: 'string.labelsAssigned'
576
+ },
577
+ {
578
+ name: 'string.labelsUnassigned',
579
+ value: 'string.labelsUnassigned'
580
+ },
581
+ {
582
+ name: 'label.created',
583
+ value: 'label.created'
584
+ },
585
+ {
586
+ name: 'label.updated',
587
+ value: 'label.updated'
588
+ },
589
+ {
590
+ name: 'label.deleted',
591
+ value: 'label.deleted'
592
+ },
390
593
  {
391
594
  name: 'stringComment.created',
392
595
  value: 'stringComment.created'
@@ -574,7 +777,7 @@ exports.webhooksProperties = [
574
777
  displayName: 'Headers',
575
778
  name: 'headers',
576
779
  type: 'json',
577
- default: '{\n "Authorization": "Bearer <ACCESS_TOKEN>"\n}',
780
+ default: '{}',
578
781
  description: 'Webhook headers',
579
782
  routing: {
580
783
  send: {
@@ -593,20 +796,21 @@ exports.webhooksProperties = [
593
796
  'api.projects.webhooks.post'
594
797
  ]
595
798
  }
596
- }
799
+ },
800
+ placeholder: '{"Authorization":"Bearer <ACCESS_TOKEN>"}'
597
801
  },
598
802
  {
599
803
  displayName: 'Payload',
600
804
  name: 'payload',
601
- type: 'fixedCollection',
602
- default: {},
603
- description: 'Custom webhook payload',
805
+ type: 'json',
806
+ default: '{}',
807
+ 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.',
604
808
  routing: {
605
809
  send: {
606
810
  property: 'payload',
607
811
  propertyInDotNotation: false,
608
812
  type: 'body',
609
- value: '={{ $value.fields || undefined }}'
813
+ value: '={{ JSON.parse($value) }}'
610
814
  }
611
815
  },
612
816
  displayOptions: {
@@ -619,22 +823,7 @@ exports.webhooksProperties = [
619
823
  ]
620
824
  }
621
825
  },
622
- placeholder: 'Add Field',
623
- options: [
624
- {
625
- displayName: 'Fields',
626
- name: 'fields',
627
- values: [
628
- {
629
- displayName: 'Created',
630
- name: 'json:project.created',
631
- type: 'json',
632
- default: '{}',
633
- 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.'
634
- }
635
- ]
636
- }
637
- ]
826
+ 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}}","isExternal":"{{projectIsExternal}}","externalType":"{{projectExternalType}}","hasCrowdsourcing":"{{projectHasCrowdsourcing}}","groupId":"{{projectGroupId}}"}},"user":{"id":"{{userId}}","username":"{{userUsername}}","fullName":"{{userFullName}}","avatarUrl":"{{userAvatarUrl}}"}}}'
638
827
  },
639
828
  {
640
829
  displayName: 'Project Id',
@@ -772,75 +961,662 @@ exports.webhooksProperties = [
772
961
  }
773
962
  },
774
963
  {
775
- displayName: 'Update Fields',
776
- name: 'updateFields',
777
- type: 'collection',
778
- placeholder: 'Add Field',
779
- default: {},
964
+ displayName: 'Project Id',
965
+ name: 'projectId',
966
+ required: true,
967
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
968
+ default: '',
969
+ type: 'options',
780
970
  displayOptions: {
781
971
  show: {
782
972
  resource: [
783
973
  'webhooks'
784
974
  ],
785
975
  operation: [
786
- 'api.projects.webhooks.patch'
976
+ 'api.projects.webhooks.deliveries.getMany'
977
+ ]
978
+ }
979
+ },
980
+ typeOptions: {
981
+ loadOptionsMethod: 'getProjects'
982
+ }
983
+ },
984
+ {
985
+ displayName: 'Webhook Id',
986
+ name: 'webhookId',
987
+ required: true,
988
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
989
+ default: '',
990
+ type: 'options',
991
+ displayOptions: {
992
+ show: {
993
+ resource: [
994
+ 'webhooks'
995
+ ],
996
+ operation: [
997
+ 'api.projects.webhooks.deliveries.getMany'
787
998
  ]
788
999
  }
789
1000
  },
1001
+ typeOptions: {
1002
+ loadOptionsMethod: 'getProjectWebhooks',
1003
+ loadOptionsDependsOn: [
1004
+ 'projectId'
1005
+ ]
1006
+ }
1007
+ },
1008
+ {
1009
+ displayName: 'Status',
1010
+ name: 'status',
1011
+ 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',
1012
+ default: '',
1013
+ type: 'options',
790
1014
  options: [
791
1015
  {
792
- displayName: 'Name',
793
- name: 'name',
794
- type: 'string',
795
- default: '',
796
- description: 'Webhook name',
797
- placeholder: 'Proofread'
798
- },
799
- {
800
- displayName: 'Is Active',
801
- name: 'isActive',
802
- type: 'boolean',
803
- default: true,
804
- description: 'Defines whether webhook is active'
1016
+ name: '-',
1017
+ value: ''
805
1018
  },
806
1019
  {
807
- displayName: 'Batching Enabled',
808
- name: 'batchingEnabled',
809
- type: 'boolean',
810
- default: false,
811
- description: 'Defines whether webhook batching is enabled'
1020
+ name: 'success',
1021
+ value: 'success'
812
1022
  },
813
1023
  {
814
- displayName: 'Content Type',
815
- name: 'contentType',
816
- type: 'options',
817
- default: '',
818
- description: 'Webhook content type',
819
- options: [
820
- {
821
- name: '-',
822
- value: ''
823
- },
824
- {
825
- name: 'multipart/form-data',
826
- value: 'multipart/form-data'
827
- },
828
- {
829
- name: 'application/json',
830
- value: 'application/json'
831
- },
832
- {
833
- name: 'application/x-www-form-urlencoded',
834
- value: 'application/x-www-form-urlencoded'
835
- }
836
- ]
1024
+ name: 'failed',
1025
+ value: 'failed'
1026
+ }
1027
+ ],
1028
+ routing: {
1029
+ send: {
1030
+ type: 'query',
1031
+ property: 'status',
1032
+ value: '={{ $value || undefined }}',
1033
+ propertyInDotNotation: false
1034
+ }
1035
+ },
1036
+ displayOptions: {
1037
+ show: {
1038
+ resource: [
1039
+ 'webhooks'
1040
+ ],
1041
+ operation: [
1042
+ 'api.projects.webhooks.deliveries.getMany'
1043
+ ]
1044
+ }
1045
+ }
1046
+ },
1047
+ {
1048
+ displayName: 'Events',
1049
+ name: 'events',
1050
+ description: 'Filter results to deliveries of the given events. It can be one event or a list of comma-separated ones',
1051
+ default: '',
1052
+ type: 'string',
1053
+ routing: {
1054
+ send: {
1055
+ type: 'query',
1056
+ property: 'events',
1057
+ value: '={{ $value || undefined }}',
1058
+ propertyInDotNotation: false
1059
+ }
1060
+ },
1061
+ displayOptions: {
1062
+ show: {
1063
+ resource: [
1064
+ 'webhooks'
1065
+ ],
1066
+ operation: [
1067
+ 'api.projects.webhooks.deliveries.getMany'
1068
+ ]
1069
+ }
1070
+ },
1071
+ placeholder: 'file.translated,file.approved'
1072
+ },
1073
+ {
1074
+ displayName: 'Created After',
1075
+ name: 'dateTime:createdAfter',
1076
+ description: 'Filter results to deliveries sent at or after the given date, in ISO 8601 format',
1077
+ default: '',
1078
+ type: 'dateTime',
1079
+ routing: {
1080
+ send: {
1081
+ type: 'query',
1082
+ property: 'createdAfter',
1083
+ value: '={{ $value || undefined }}',
1084
+ propertyInDotNotation: false
1085
+ }
1086
+ },
1087
+ displayOptions: {
1088
+ show: {
1089
+ resource: [
1090
+ 'webhooks'
1091
+ ],
1092
+ operation: [
1093
+ 'api.projects.webhooks.deliveries.getMany'
1094
+ ]
1095
+ }
1096
+ },
1097
+ placeholder: '2026-09-28T00:00:00+00:00'
1098
+ },
1099
+ {
1100
+ displayName: 'Created Before',
1101
+ name: 'dateTime:createdBefore',
1102
+ description: 'Filter results to deliveries sent at or before the given date, in ISO 8601 format',
1103
+ default: '',
1104
+ type: 'dateTime',
1105
+ routing: {
1106
+ send: {
1107
+ type: 'query',
1108
+ property: 'createdBefore',
1109
+ value: '={{ $value || undefined }}',
1110
+ propertyInDotNotation: false
1111
+ }
1112
+ },
1113
+ displayOptions: {
1114
+ show: {
1115
+ resource: [
1116
+ 'webhooks'
1117
+ ],
1118
+ operation: [
1119
+ 'api.projects.webhooks.deliveries.getMany'
1120
+ ]
1121
+ }
1122
+ },
1123
+ placeholder: '2026-09-29T00:00:00+00:00'
1124
+ },
1125
+ {
1126
+ displayName: 'Limit',
1127
+ name: 'limit',
1128
+ description: 'Max number of results to return',
1129
+ default: 50,
1130
+ type: 'number',
1131
+ routing: {
1132
+ send: {
1133
+ type: 'query',
1134
+ property: 'limit',
1135
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
1136
+ propertyInDotNotation: false
1137
+ }
1138
+ },
1139
+ displayOptions: {
1140
+ show: {
1141
+ resource: [
1142
+ 'webhooks'
1143
+ ],
1144
+ operation: [
1145
+ 'api.projects.webhooks.deliveries.getMany'
1146
+ ],
1147
+ returnAll: [
1148
+ false
1149
+ ]
1150
+ }
1151
+ },
1152
+ typeOptions: {
1153
+ minValue: 1
1154
+ }
1155
+ },
1156
+ {
1157
+ displayName: 'Project Id',
1158
+ name: 'projectId',
1159
+ required: true,
1160
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1161
+ default: '',
1162
+ type: 'options',
1163
+ displayOptions: {
1164
+ show: {
1165
+ resource: [
1166
+ 'webhooks'
1167
+ ],
1168
+ operation: [
1169
+ 'api.projects.webhooks.deliveries.get'
1170
+ ]
1171
+ }
1172
+ },
1173
+ typeOptions: {
1174
+ loadOptionsMethod: 'getProjects'
1175
+ }
1176
+ },
1177
+ {
1178
+ displayName: 'Webhook Id',
1179
+ name: 'webhookId',
1180
+ required: true,
1181
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1182
+ default: '',
1183
+ type: 'options',
1184
+ displayOptions: {
1185
+ show: {
1186
+ resource: [
1187
+ 'webhooks'
1188
+ ],
1189
+ operation: [
1190
+ 'api.projects.webhooks.deliveries.get'
1191
+ ]
1192
+ }
1193
+ },
1194
+ typeOptions: {
1195
+ loadOptionsMethod: 'getProjectWebhooks',
1196
+ loadOptionsDependsOn: [
1197
+ 'projectId'
1198
+ ]
1199
+ }
1200
+ },
1201
+ {
1202
+ displayName: 'Delivery Id',
1203
+ name: 'deliveryId',
1204
+ required: true,
1205
+ 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)',
1206
+ default: undefined,
1207
+ type: 'number',
1208
+ displayOptions: {
1209
+ show: {
1210
+ resource: [
1211
+ 'webhooks'
1212
+ ],
1213
+ operation: [
1214
+ 'api.projects.webhooks.deliveries.get'
1215
+ ]
1216
+ }
1217
+ },
1218
+ placeholder: '9051'
1219
+ },
1220
+ {
1221
+ displayName: 'Project Id',
1222
+ name: 'projectId',
1223
+ required: true,
1224
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1225
+ default: '',
1226
+ type: 'options',
1227
+ displayOptions: {
1228
+ show: {
1229
+ resource: [
1230
+ 'webhooks'
1231
+ ],
1232
+ operation: [
1233
+ 'api.projects.webhooks.deliveries.getAll'
1234
+ ]
1235
+ }
1236
+ },
1237
+ typeOptions: {
1238
+ loadOptionsMethod: 'getProjects'
1239
+ }
1240
+ },
1241
+ {
1242
+ displayName: 'Webhook Ids',
1243
+ name: 'webhookIds',
1244
+ 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)',
1245
+ default: '',
1246
+ type: 'string',
1247
+ routing: {
1248
+ send: {
1249
+ type: 'query',
1250
+ property: 'webhookIds',
1251
+ value: '={{ $value || undefined }}',
1252
+ propertyInDotNotation: false
1253
+ }
1254
+ },
1255
+ displayOptions: {
1256
+ show: {
1257
+ resource: [
1258
+ 'webhooks'
1259
+ ],
1260
+ operation: [
1261
+ 'api.projects.webhooks.deliveries.getAll'
1262
+ ]
1263
+ }
1264
+ },
1265
+ placeholder: '4,7'
1266
+ },
1267
+ {
1268
+ displayName: 'Status',
1269
+ name: 'status',
1270
+ 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',
1271
+ default: '',
1272
+ type: 'options',
1273
+ options: [
1274
+ {
1275
+ name: '-',
1276
+ value: ''
1277
+ },
1278
+ {
1279
+ name: 'success',
1280
+ value: 'success'
1281
+ },
1282
+ {
1283
+ name: 'failed',
1284
+ value: 'failed'
1285
+ }
1286
+ ],
1287
+ routing: {
1288
+ send: {
1289
+ type: 'query',
1290
+ property: 'status',
1291
+ value: '={{ $value || undefined }}',
1292
+ propertyInDotNotation: false
1293
+ }
1294
+ },
1295
+ displayOptions: {
1296
+ show: {
1297
+ resource: [
1298
+ 'webhooks'
1299
+ ],
1300
+ operation: [
1301
+ 'api.projects.webhooks.deliveries.getAll'
1302
+ ]
1303
+ }
1304
+ }
1305
+ },
1306
+ {
1307
+ displayName: 'Events',
1308
+ name: 'events',
1309
+ description: 'Filter results to deliveries of the given events. It can be one event or a list of comma-separated ones',
1310
+ default: '',
1311
+ type: 'string',
1312
+ routing: {
1313
+ send: {
1314
+ type: 'query',
1315
+ property: 'events',
1316
+ value: '={{ $value || undefined }}',
1317
+ propertyInDotNotation: false
1318
+ }
1319
+ },
1320
+ displayOptions: {
1321
+ show: {
1322
+ resource: [
1323
+ 'webhooks'
1324
+ ],
1325
+ operation: [
1326
+ 'api.projects.webhooks.deliveries.getAll'
1327
+ ]
1328
+ }
1329
+ },
1330
+ placeholder: 'file.translated,file.approved'
1331
+ },
1332
+ {
1333
+ displayName: 'Created After',
1334
+ name: 'dateTime:createdAfter',
1335
+ description: 'Filter results to deliveries sent at or after the given date, in ISO 8601 format',
1336
+ default: '',
1337
+ type: 'dateTime',
1338
+ routing: {
1339
+ send: {
1340
+ type: 'query',
1341
+ property: 'createdAfter',
1342
+ value: '={{ $value || undefined }}',
1343
+ propertyInDotNotation: false
1344
+ }
1345
+ },
1346
+ displayOptions: {
1347
+ show: {
1348
+ resource: [
1349
+ 'webhooks'
1350
+ ],
1351
+ operation: [
1352
+ 'api.projects.webhooks.deliveries.getAll'
1353
+ ]
1354
+ }
1355
+ },
1356
+ placeholder: '2026-09-28T00:00:00+00:00'
1357
+ },
1358
+ {
1359
+ displayName: 'Created Before',
1360
+ name: 'dateTime:createdBefore',
1361
+ description: 'Filter results to deliveries sent at or before the given date, in ISO 8601 format',
1362
+ default: '',
1363
+ type: 'dateTime',
1364
+ routing: {
1365
+ send: {
1366
+ type: 'query',
1367
+ property: 'createdBefore',
1368
+ value: '={{ $value || undefined }}',
1369
+ propertyInDotNotation: false
1370
+ }
1371
+ },
1372
+ displayOptions: {
1373
+ show: {
1374
+ resource: [
1375
+ 'webhooks'
1376
+ ],
1377
+ operation: [
1378
+ 'api.projects.webhooks.deliveries.getAll'
1379
+ ]
1380
+ }
1381
+ },
1382
+ placeholder: '2026-09-29T00:00:00+00:00'
1383
+ },
1384
+ {
1385
+ displayName: 'Limit',
1386
+ name: 'limit',
1387
+ description: 'Max number of results to return',
1388
+ default: 50,
1389
+ type: 'number',
1390
+ routing: {
1391
+ send: {
1392
+ type: 'query',
1393
+ property: 'limit',
1394
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
1395
+ propertyInDotNotation: false
1396
+ }
1397
+ },
1398
+ displayOptions: {
1399
+ show: {
1400
+ resource: [
1401
+ 'webhooks'
1402
+ ],
1403
+ operation: [
1404
+ 'api.projects.webhooks.deliveries.getAll'
1405
+ ],
1406
+ returnAll: [
1407
+ false
1408
+ ]
1409
+ }
1410
+ },
1411
+ typeOptions: {
1412
+ minValue: 1
1413
+ }
1414
+ },
1415
+ {
1416
+ displayName: 'Project Id',
1417
+ name: 'projectId',
1418
+ required: true,
1419
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1420
+ default: '',
1421
+ type: 'options',
1422
+ displayOptions: {
1423
+ show: {
1424
+ resource: [
1425
+ 'webhooks'
1426
+ ],
1427
+ operation: [
1428
+ 'api.projects.webhooks.deliveries.resend.post'
1429
+ ]
1430
+ }
1431
+ },
1432
+ typeOptions: {
1433
+ loadOptionsMethod: 'getProjects'
1434
+ }
1435
+ },
1436
+ {
1437
+ displayName: 'Webhook Id',
1438
+ name: 'webhookId',
1439
+ required: true,
1440
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1441
+ default: '',
1442
+ type: 'options',
1443
+ displayOptions: {
1444
+ show: {
1445
+ resource: [
1446
+ 'webhooks'
1447
+ ],
1448
+ operation: [
1449
+ 'api.projects.webhooks.deliveries.resend.post'
1450
+ ]
1451
+ }
1452
+ },
1453
+ typeOptions: {
1454
+ loadOptionsMethod: 'getProjectWebhooks',
1455
+ loadOptionsDependsOn: [
1456
+ 'projectId'
1457
+ ]
1458
+ }
1459
+ },
1460
+ {
1461
+ displayName: 'Delivery Id',
1462
+ name: 'deliveryId',
1463
+ required: true,
1464
+ 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)',
1465
+ default: undefined,
1466
+ type: 'number',
1467
+ displayOptions: {
1468
+ show: {
1469
+ resource: [
1470
+ 'webhooks'
1471
+ ],
1472
+ operation: [
1473
+ 'api.projects.webhooks.deliveries.resend.post'
1474
+ ]
1475
+ }
1476
+ },
1477
+ placeholder: '9051'
1478
+ },
1479
+ {
1480
+ displayName: 'Project Id',
1481
+ name: 'projectId',
1482
+ required: true,
1483
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
1484
+ default: '',
1485
+ type: 'options',
1486
+ displayOptions: {
1487
+ show: {
1488
+ resource: [
1489
+ 'webhooks'
1490
+ ],
1491
+ operation: [
1492
+ 'api.projects.webhooks.tests.post'
1493
+ ]
1494
+ }
1495
+ },
1496
+ typeOptions: {
1497
+ loadOptionsMethod: 'getProjects'
1498
+ }
1499
+ },
1500
+ {
1501
+ displayName: 'Webhook Id',
1502
+ name: 'webhookId',
1503
+ required: true,
1504
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.projects.webhooks.getMany)',
1505
+ default: '',
1506
+ type: 'options',
1507
+ displayOptions: {
1508
+ show: {
1509
+ resource: [
1510
+ 'webhooks'
1511
+ ],
1512
+ operation: [
1513
+ 'api.projects.webhooks.tests.post'
1514
+ ]
1515
+ }
1516
+ },
1517
+ typeOptions: {
1518
+ loadOptionsMethod: 'getProjectWebhooks',
1519
+ loadOptionsDependsOn: [
1520
+ 'projectId'
1521
+ ]
1522
+ }
1523
+ },
1524
+ {
1525
+ displayName: 'Event',
1526
+ name: 'event',
1527
+ type: 'string',
1528
+ default: '',
1529
+ description: 'Event to send a sample payload for. Must be one of the webhook `events`. Default is the first event of the webhook',
1530
+ routing: {
1531
+ send: {
1532
+ property: 'event',
1533
+ propertyInDotNotation: false,
1534
+ type: 'body',
1535
+ value: '={{ $value || undefined }}'
1536
+ }
1537
+ },
1538
+ displayOptions: {
1539
+ show: {
1540
+ resource: [
1541
+ 'webhooks'
1542
+ ],
1543
+ operation: [
1544
+ 'api.projects.webhooks.tests.post'
1545
+ ]
1546
+ }
1547
+ },
1548
+ placeholder: 'file.translated'
1549
+ },
1550
+ {
1551
+ displayName: 'Update Fields',
1552
+ name: 'updateFields',
1553
+ type: 'collection',
1554
+ placeholder: 'Add Field',
1555
+ default: {},
1556
+ displayOptions: {
1557
+ show: {
1558
+ resource: [
1559
+ 'webhooks'
1560
+ ],
1561
+ operation: [
1562
+ 'api.projects.webhooks.patch'
1563
+ ]
1564
+ }
1565
+ },
1566
+ options: [
1567
+ {
1568
+ displayName: 'Name',
1569
+ name: 'name',
1570
+ type: 'string',
1571
+ default: '',
1572
+ description: 'Webhook name',
1573
+ placeholder: 'Proofread'
1574
+ },
1575
+ {
1576
+ displayName: 'Is Active',
1577
+ name: 'isActive',
1578
+ type: 'boolean',
1579
+ default: true,
1580
+ description: 'Defines whether webhook is active'
1581
+ },
1582
+ {
1583
+ displayName: 'Batching Enabled',
1584
+ name: 'batchingEnabled',
1585
+ type: 'boolean',
1586
+ default: false,
1587
+ description: 'Defines whether webhook batching is enabled'
1588
+ },
1589
+ {
1590
+ displayName: 'Content Type',
1591
+ name: 'contentType',
1592
+ type: 'options',
1593
+ default: '',
1594
+ description: 'Webhook content type',
1595
+ options: [
1596
+ {
1597
+ name: '-',
1598
+ value: ''
1599
+ },
1600
+ {
1601
+ name: 'multipart/form-data',
1602
+ value: 'multipart/form-data'
1603
+ },
1604
+ {
1605
+ name: 'application/json',
1606
+ value: 'application/json'
1607
+ },
1608
+ {
1609
+ name: 'application/x-www-form-urlencoded',
1610
+ value: 'application/x-www-form-urlencoded'
1611
+ }
1612
+ ]
837
1613
  },
838
1614
  {
839
1615
  displayName: 'Events',
840
1616
  name: 'events',
841
1617
  type: 'multiOptions',
842
1618
  default: [],
843
- description: 'You can configure webhooks for the following events:\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 QA check are 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',
1619
+ description: 'You can configure webhooks for the following events:\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 QA check are 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',
844
1620
  options: [
845
1621
  {
846
1622
  name: 'project.translated',
@@ -878,6 +1654,26 @@ exports.webhooksProperties = [
878
1654
  name: 'string.deleted',
879
1655
  value: 'string.deleted'
880
1656
  },
1657
+ {
1658
+ name: 'string.labelsAssigned',
1659
+ value: 'string.labelsAssigned'
1660
+ },
1661
+ {
1662
+ name: 'string.labelsUnassigned',
1663
+ value: 'string.labelsUnassigned'
1664
+ },
1665
+ {
1666
+ name: 'label.created',
1667
+ value: 'label.created'
1668
+ },
1669
+ {
1670
+ name: 'label.updated',
1671
+ value: 'label.updated'
1672
+ },
1673
+ {
1674
+ name: 'label.deleted',
1675
+ value: 'label.deleted'
1676
+ },
881
1677
  {
882
1678
  name: 'stringComment.created',
883
1679
  value: 'stringComment.created'
@@ -936,8 +1732,9 @@ exports.webhooksProperties = [
936
1732
  displayName: 'Headers',
937
1733
  name: 'json:headers',
938
1734
  type: 'json',
939
- default: '{\n "Authorization": "Bearer <ACCESS_TOKEN>"\n}',
940
- description: 'Webhook headers'
1735
+ default: '{}',
1736
+ description: 'Webhook headers',
1737
+ placeholder: '{"Authorization":"Bearer <ACCESS_TOKEN>"}'
941
1738
  },
942
1739
  {
943
1740
  displayName: 'Request Type',
@@ -962,26 +1759,11 @@ exports.webhooksProperties = [
962
1759
  },
963
1760
  {
964
1761
  displayName: 'Payload',
965
- name: 'payload',
966
- type: 'fixedCollection',
967
- default: {},
968
- description: 'Custom webhook payload',
969
- placeholder: 'Add Field',
970
- options: [
971
- {
972
- name: 'fields',
973
- displayName: 'Fields',
974
- values: [
975
- {
976
- displayName: 'Created',
977
- name: 'json:project.created',
978
- type: 'json',
979
- default: '{}',
980
- 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.'
981
- }
982
- ]
983
- }
984
- ]
1762
+ name: 'json:payload',
1763
+ type: 'json',
1764
+ default: '{}',
1765
+ 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.',
1766
+ 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}}","isExternal":"{{projectIsExternal}}","externalType":"{{projectExternalType}}","hasCrowdsourcing":"{{projectHasCrowdsourcing}}","groupId":"{{projectGroupId}}"}},"user":{"id":"{{userId}}","username":"{{userUsername}}","fullName":"{{userFullName}}","avatarUrl":"{{userAvatarUrl}}"}}}'
985
1767
  }
986
1768
  ],
987
1769
  routing: {
@@ -1007,6 +1789,40 @@ exports.webhooksProperties = [
1007
1789
  ]
1008
1790
  }
1009
1791
  }
1792
+ },
1793
+ {
1794
+ displayName: 'Return All',
1795
+ name: 'returnAll',
1796
+ type: 'boolean',
1797
+ default: true,
1798
+ description: 'Whether to return all results or only up to a given limit',
1799
+ displayOptions: {
1800
+ show: {
1801
+ resource: [
1802
+ 'webhooks'
1803
+ ],
1804
+ operation: [
1805
+ 'api.projects.webhooks.deliveries.getMany'
1806
+ ]
1807
+ }
1808
+ }
1809
+ },
1810
+ {
1811
+ displayName: 'Return All',
1812
+ name: 'returnAll',
1813
+ type: 'boolean',
1814
+ default: true,
1815
+ description: 'Whether to return all results or only up to a given limit',
1816
+ displayOptions: {
1817
+ show: {
1818
+ resource: [
1819
+ 'webhooks'
1820
+ ],
1821
+ operation: [
1822
+ 'api.projects.webhooks.deliveries.getAll'
1823
+ ]
1824
+ }
1825
+ }
1010
1826
  }
1011
1827
  ];
1012
1828
  //# sourceMappingURL=webhooks.js.map