@crowdin/n8n-nodes-crowdin 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) 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/discussions.d.ts +2 -0
  4. package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.js +1243 -0
  5. package/dist/nodes/Crowdin/properties/crowdin/fileBased/discussions.js.map +1 -0
  6. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js +8 -3
  7. package/dist/nodes/Crowdin/properties/crowdin/fileBased/glossaries.js.map +1 -1
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +8 -1
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js +9 -6
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/integrations.js.map +1 -1
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/organizationWebhooks.js +770 -81
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/organizationWebhooks.js.map +1 -1
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +55 -14
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js +7 -0
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/reports.js.map +1 -1
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js +35 -7
  19. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceFiles.js.map +1 -1
  20. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js +652 -11
  21. package/dist/nodes/Crowdin/properties/crowdin/fileBased/sourceStrings.js.map +1 -1
  22. package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js +1 -1
  23. package/dist/nodes/Crowdin/properties/crowdin/fileBased/styleGuides.js.map +1 -1
  24. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js +21 -0
  25. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js.map +1 -1
  26. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js +4 -3
  27. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationMemory.js.map +1 -1
  28. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationStatus.js +94 -1
  29. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translationStatus.js.map +1 -1
  30. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js +1163 -30
  31. package/dist/nodes/Crowdin/properties/crowdin/fileBased/translations.js.map +1 -1
  32. package/dist/nodes/Crowdin/properties/crowdin/fileBased/users.js +678 -2
  33. package/dist/nodes/Crowdin/properties/crowdin/fileBased/users.js.map +1 -1
  34. package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js +909 -93
  35. package/dist/nodes/Crowdin/properties/crowdin/fileBased/webhooks.js.map +1 -1
  36. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +62 -16
  37. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
  38. package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js +2 -2
  39. package/dist/nodes/Crowdin/properties/crowdin/stringBased/branches.js.map +1 -1
  40. package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.d.ts +2 -0
  41. package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.js +1243 -0
  42. package/dist/nodes/Crowdin/properties/crowdin/stringBased/discussions.js.map +1 -0
  43. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js +8 -3
  44. package/dist/nodes/Crowdin/properties/crowdin/stringBased/glossaries.js.map +1 -1
  45. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +8 -1
  46. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  47. package/dist/nodes/Crowdin/properties/crowdin/stringBased/organizationWebhooks.js +770 -81
  48. package/dist/nodes/Crowdin/properties/crowdin/stringBased/organizationWebhooks.js.map +1 -1
  49. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +55 -14
  50. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
  51. package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js +7 -0
  52. package/dist/nodes/Crowdin/properties/crowdin/stringBased/reports.js.map +1 -1
  53. package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js +579 -0
  54. package/dist/nodes/Crowdin/properties/crowdin/stringBased/sourceStrings.js.map +1 -1
  55. package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js +1 -1
  56. package/dist/nodes/Crowdin/properties/crowdin/stringBased/styleGuides.js.map +1 -1
  57. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js +21 -0
  58. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js.map +1 -1
  59. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js +4 -3
  60. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationMemory.js.map +1 -1
  61. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationStatus.js +1 -1
  62. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translationStatus.js.map +1 -1
  63. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js +1101 -30
  64. package/dist/nodes/Crowdin/properties/crowdin/stringBased/translations.js.map +1 -1
  65. package/dist/nodes/Crowdin/properties/crowdin/stringBased/users.js +678 -2
  66. package/dist/nodes/Crowdin/properties/crowdin/stringBased/users.js.map +1 -1
  67. package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js +909 -93
  68. package/dist/nodes/Crowdin/properties/crowdin/stringBased/webhooks.js.map +1 -1
  69. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +63 -21
  70. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
  71. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js +7 -2
  72. package/dist/nodes/Crowdin/properties/enterprise/fileBased/glossaries.js.map +1 -1
  73. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js +9 -6
  74. package/dist/nodes/Crowdin/properties/enterprise/fileBased/integrations.js.map +1 -1
  75. package/dist/nodes/Crowdin/properties/enterprise/fileBased/organizationWebhooks.js +770 -81
  76. package/dist/nodes/Crowdin/properties/enterprise/fileBased/organizationWebhooks.js.map +1 -1
  77. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +51 -6
  78. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  79. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js +35 -7
  80. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceFiles.js.map +1 -1
  81. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js +652 -11
  82. package/dist/nodes/Crowdin/properties/enterprise/fileBased/sourceStrings.js.map +1 -1
  83. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js +3 -2
  84. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationMemory.js.map +1 -1
  85. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationStatus.js +94 -1
  86. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translationStatus.js.map +1 -1
  87. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js +1163 -30
  88. package/dist/nodes/Crowdin/properties/enterprise/fileBased/translations.js.map +1 -1
  89. package/dist/nodes/Crowdin/properties/enterprise/fileBased/users.js +7 -0
  90. package/dist/nodes/Crowdin/properties/enterprise/fileBased/users.js.map +1 -1
  91. package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js +909 -93
  92. package/dist/nodes/Crowdin/properties/enterprise/fileBased/webhooks.js.map +1 -1
  93. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +63 -21
  94. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
  95. package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js +2 -2
  96. package/dist/nodes/Crowdin/properties/enterprise/stringBased/branches.js.map +1 -1
  97. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js +7 -2
  98. package/dist/nodes/Crowdin/properties/enterprise/stringBased/glossaries.js.map +1 -1
  99. package/dist/nodes/Crowdin/properties/enterprise/stringBased/organizationWebhooks.js +770 -81
  100. package/dist/nodes/Crowdin/properties/enterprise/stringBased/organizationWebhooks.js.map +1 -1
  101. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +51 -6
  102. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  103. package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js +579 -0
  104. package/dist/nodes/Crowdin/properties/enterprise/stringBased/sourceStrings.js.map +1 -1
  105. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js +3 -2
  106. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationMemory.js.map +1 -1
  107. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationStatus.js +1 -1
  108. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translationStatus.js.map +1 -1
  109. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js +1101 -30
  110. package/dist/nodes/Crowdin/properties/enterprise/stringBased/translations.js.map +1 -1
  111. package/dist/nodes/Crowdin/properties/enterprise/stringBased/users.js +7 -0
  112. package/dist/nodes/Crowdin/properties/enterprise/stringBased/users.js.map +1 -1
  113. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js +909 -93
  114. package/dist/nodes/Crowdin/properties/enterprise/stringBased/webhooks.js.map +1 -1
  115. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js +25 -0
  116. package/dist/nodes/Crowdin/triggers/crowdin/fileBased/events.js.map +1 -1
  117. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js +25 -0
  118. package/dist/nodes/Crowdin/triggers/crowdin/stringBased/events.js.map +1 -1
  119. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js +25 -0
  120. package/dist/nodes/Crowdin/triggers/enterprise/fileBased/events.js.map +1 -1
  121. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js +25 -0
  122. package/dist/nodes/Crowdin/triggers/enterprise/stringBased/events.js.map +1 -1
  123. package/dist/package.json +1 -1
  124. package/dist/tsconfig.tsbuildinfo +1 -1
  125. package/package.json +1 -1
@@ -104,6 +104,94 @@ exports.organizationWebhooksProperties = [
104
104
  ]
105
105
  }
106
106
  }
107
+ },
108
+ {
109
+ name: 'List Organization Webhook Deliveries',
110
+ value: 'api.webhooks.deliveries.getMany',
111
+ action: 'List Organization Webhook Deliveries',
112
+ description: '**Required scopes:** `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: '=/webhooks/{{$parameter["organizationWebhookId"]}}/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 Organization Webhook Delivery',
136
+ value: 'api.webhooks.deliveries.get',
137
+ action: 'Get Organization Webhook Delivery',
138
+ description: '**Required scopes:** `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: '=/webhooks/{{$parameter["organizationWebhookId"]}}/deliveries/{{$parameter["deliveryId"]}}'
143
+ }
144
+ }
145
+ },
146
+ {
147
+ name: 'List All Organization Webhook Deliveries',
148
+ value: 'api.webhooks.deliveries.getAll',
149
+ action: 'List All Organization Webhook Deliveries',
150
+ description: '**Required scopes:** `webhook` (Read only).\n\nReturns the deliveries of all organization 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: '=/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 Organization Webhook Delivery',
174
+ value: 'api.webhooks.deliveries.resend.post',
175
+ action: 'Resend Organization Webhook Delivery',
176
+ description: '**Required scopes:** `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: '=/webhooks/{{$parameter["organizationWebhookId"]}}/deliveries/{{$parameter["deliveryId"]}}/resend'
181
+ }
182
+ }
183
+ },
184
+ {
185
+ name: 'Test Organization Webhook',
186
+ value: 'api.webhooks.tests.post',
187
+ action: 'Test Organization Webhook',
188
+ description: '**Required scopes:** `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: '=/webhooks/{{$parameter["organizationWebhookId"]}}/tests'
193
+ }
194
+ }
107
195
  }
108
196
  ],
109
197
  default: 'api.webhooks.getMany'
@@ -203,6 +291,101 @@ exports.organizationWebhooksProperties = [
203
291
  }
204
292
  }
205
293
  },
294
+ {
295
+ displayName: 'GET /webhooks/{organizationWebhookId}/deliveries',
296
+ name: 'operation',
297
+ type: 'notice',
298
+ typeOptions: {
299
+ theme: 'info'
300
+ },
301
+ default: '',
302
+ displayOptions: {
303
+ show: {
304
+ resource: [
305
+ 'organizationWebhooks'
306
+ ],
307
+ operation: [
308
+ 'api.webhooks.deliveries.getMany'
309
+ ]
310
+ }
311
+ }
312
+ },
313
+ {
314
+ displayName: 'GET /webhooks/{organizationWebhookId}/deliveries/{deliveryId}',
315
+ name: 'operation',
316
+ type: 'notice',
317
+ typeOptions: {
318
+ theme: 'info'
319
+ },
320
+ default: '',
321
+ displayOptions: {
322
+ show: {
323
+ resource: [
324
+ 'organizationWebhooks'
325
+ ],
326
+ operation: [
327
+ 'api.webhooks.deliveries.get'
328
+ ]
329
+ }
330
+ }
331
+ },
332
+ {
333
+ displayName: 'GET /webhooks/deliveries',
334
+ name: 'operation',
335
+ type: 'notice',
336
+ typeOptions: {
337
+ theme: 'info'
338
+ },
339
+ default: '',
340
+ displayOptions: {
341
+ show: {
342
+ resource: [
343
+ 'organizationWebhooks'
344
+ ],
345
+ operation: [
346
+ 'api.webhooks.deliveries.getAll'
347
+ ]
348
+ }
349
+ }
350
+ },
351
+ {
352
+ displayName: 'POST /webhooks/{organizationWebhookId}/deliveries/{deliveryId}/resend',
353
+ name: 'operation',
354
+ type: 'notice',
355
+ typeOptions: {
356
+ theme: 'info'
357
+ },
358
+ default: '',
359
+ displayOptions: {
360
+ show: {
361
+ resource: [
362
+ 'organizationWebhooks'
363
+ ],
364
+ operation: [
365
+ 'api.webhooks.deliveries.resend.post'
366
+ ]
367
+ }
368
+ }
369
+ },
370
+ {
371
+ displayName: 'POST /webhooks/{organizationWebhookId}/tests',
372
+ name: 'operation',
373
+ type: 'notice',
374
+ typeOptions: {
375
+ theme: 'info'
376
+ },
377
+ default: '',
378
+ displayOptions: {
379
+ show: {
380
+ resource: [
381
+ 'organizationWebhooks'
382
+ ],
383
+ operation: [
384
+ 'api.webhooks.tests.post'
385
+ ]
386
+ }
387
+ }
388
+ },
206
389
  {
207
390
  displayName: 'Limit',
208
391
  name: 'limit',
@@ -457,7 +640,7 @@ exports.organizationWebhooksProperties = [
457
640
  displayName: 'Headers',
458
641
  name: 'headers',
459
642
  type: 'json',
460
- default: '{\n "Accept": "application/xml"\n}',
643
+ default: '{}',
461
644
  description: 'Webhook headers',
462
645
  routing: {
463
646
  send: {
@@ -476,7 +659,8 @@ exports.organizationWebhooksProperties = [
476
659
  'api.webhooks.post'
477
660
  ]
478
661
  }
479
- }
662
+ },
663
+ placeholder: '{"Accept":"application/xml"}'
480
664
  },
481
665
  {
482
666
  displayName: 'Payload',
@@ -583,101 +767,572 @@ exports.organizationWebhooksProperties = [
583
767
  }
584
768
  },
585
769
  {
586
- displayName: 'Update Fields',
587
- name: 'updateFields',
588
- type: 'collection',
589
- placeholder: 'Add Field',
590
- default: {},
770
+ displayName: 'Organization Webhook Id',
771
+ name: 'organizationWebhookId',
772
+ required: true,
773
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.webhooks.getMany)',
774
+ default: '',
775
+ type: 'options',
591
776
  displayOptions: {
592
777
  show: {
593
778
  resource: [
594
779
  'organizationWebhooks'
595
780
  ],
596
781
  operation: [
597
- 'api.webhooks.patch'
782
+ 'api.webhooks.deliveries.getMany'
598
783
  ]
599
784
  }
600
785
  },
786
+ typeOptions: {
787
+ loadOptionsMethod: 'getOrganizationWebhooks'
788
+ }
789
+ },
790
+ {
791
+ displayName: 'Status',
792
+ name: 'status',
793
+ 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',
794
+ default: '',
795
+ type: 'options',
601
796
  options: [
602
797
  {
603
- displayName: 'Name',
604
- name: 'name',
605
- type: 'string',
606
- default: '',
607
- description: 'Webhook name',
608
- placeholder: 'Proofread'
609
- },
610
- {
611
- displayName: 'Is Active',
612
- name: 'isActive',
613
- type: 'boolean',
614
- default: true,
615
- description: 'Defines whether webhook is active'
616
- },
617
- {
618
- displayName: 'Batching Enabled',
619
- name: 'batchingEnabled',
620
- type: 'boolean',
621
- default: false,
622
- description: 'Defines whether webhook batching is enabled'
798
+ name: '-',
799
+ value: ''
623
800
  },
624
801
  {
625
- displayName: 'Content Type',
626
- name: 'contentType',
627
- type: 'options',
628
- default: '',
629
- description: 'Webhook content type',
630
- options: [
631
- {
632
- name: '-',
633
- value: ''
634
- },
635
- {
636
- name: 'multipart/form-data',
637
- value: 'multipart/form-data'
638
- },
639
- {
640
- name: 'application/json',
641
- value: 'application/json'
642
- },
643
- {
644
- name: 'application/x-www-form-urlencoded',
645
- value: 'application/x-www-form-urlencoded'
646
- }
647
- ]
802
+ name: 'success',
803
+ value: 'success'
648
804
  },
649
805
  {
650
- displayName: 'Events',
651
- name: 'events',
652
- type: 'multiOptions',
653
- default: [],
654
- description: 'Webhook events',
655
- options: [
656
- {
657
- name: 'project.created',
658
- value: 'project.created'
659
- },
660
- {
661
- name: 'project.deleted',
662
- value: 'project.deleted'
663
- }
806
+ name: 'failed',
807
+ value: 'failed'
808
+ }
809
+ ],
810
+ routing: {
811
+ send: {
812
+ type: 'query',
813
+ property: 'status',
814
+ value: '={{ $value || undefined }}',
815
+ propertyInDotNotation: false
816
+ }
817
+ },
818
+ displayOptions: {
819
+ show: {
820
+ resource: [
821
+ 'organizationWebhooks'
822
+ ],
823
+ operation: [
824
+ 'api.webhooks.deliveries.getMany'
664
825
  ]
665
- },
666
- {
667
- displayName: 'Headers',
668
- name: 'json:headers',
669
- type: 'json',
670
- default: '{\n "Accept": "application/xml"\n}',
671
- description: 'Webhook headers'
672
- },
673
- {
674
- displayName: 'Request Type',
675
- name: 'requestType',
676
- type: 'options',
677
- default: '',
678
- description: 'Webhook request type',
679
- options: [
680
- {
826
+ }
827
+ }
828
+ },
829
+ {
830
+ displayName: 'Events',
831
+ name: 'events',
832
+ description: 'Filter results to deliveries of the given events. It can be one event or a list of comma-separated ones',
833
+ default: '',
834
+ type: 'string',
835
+ routing: {
836
+ send: {
837
+ type: 'query',
838
+ property: 'events',
839
+ value: '={{ $value || undefined }}',
840
+ propertyInDotNotation: false
841
+ }
842
+ },
843
+ displayOptions: {
844
+ show: {
845
+ resource: [
846
+ 'organizationWebhooks'
847
+ ],
848
+ operation: [
849
+ 'api.webhooks.deliveries.getMany'
850
+ ]
851
+ }
852
+ },
853
+ placeholder: 'file.translated,file.approved'
854
+ },
855
+ {
856
+ displayName: 'Created After',
857
+ name: 'dateTime:createdAfter',
858
+ description: 'Filter results to deliveries sent at or after the given date, in ISO 8601 format',
859
+ default: '',
860
+ type: 'dateTime',
861
+ routing: {
862
+ send: {
863
+ type: 'query',
864
+ property: 'createdAfter',
865
+ value: '={{ $value || undefined }}',
866
+ propertyInDotNotation: false
867
+ }
868
+ },
869
+ displayOptions: {
870
+ show: {
871
+ resource: [
872
+ 'organizationWebhooks'
873
+ ],
874
+ operation: [
875
+ 'api.webhooks.deliveries.getMany'
876
+ ]
877
+ }
878
+ },
879
+ placeholder: '2026-09-28T00:00:00+00:00'
880
+ },
881
+ {
882
+ displayName: 'Created Before',
883
+ name: 'dateTime:createdBefore',
884
+ description: 'Filter results to deliveries sent at or before the given date, in ISO 8601 format',
885
+ default: '',
886
+ type: 'dateTime',
887
+ routing: {
888
+ send: {
889
+ type: 'query',
890
+ property: 'createdBefore',
891
+ value: '={{ $value || undefined }}',
892
+ propertyInDotNotation: false
893
+ }
894
+ },
895
+ displayOptions: {
896
+ show: {
897
+ resource: [
898
+ 'organizationWebhooks'
899
+ ],
900
+ operation: [
901
+ 'api.webhooks.deliveries.getMany'
902
+ ]
903
+ }
904
+ },
905
+ placeholder: '2026-09-29T00:00:00+00:00'
906
+ },
907
+ {
908
+ displayName: 'Limit',
909
+ name: 'limit',
910
+ description: 'Max number of results to return',
911
+ default: 50,
912
+ type: 'number',
913
+ routing: {
914
+ send: {
915
+ type: 'query',
916
+ property: 'limit',
917
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
918
+ propertyInDotNotation: false
919
+ }
920
+ },
921
+ displayOptions: {
922
+ show: {
923
+ resource: [
924
+ 'organizationWebhooks'
925
+ ],
926
+ operation: [
927
+ 'api.webhooks.deliveries.getMany'
928
+ ],
929
+ returnAll: [
930
+ false
931
+ ]
932
+ }
933
+ },
934
+ typeOptions: {
935
+ minValue: 1
936
+ }
937
+ },
938
+ {
939
+ displayName: 'Organization Webhook Id',
940
+ name: 'organizationWebhookId',
941
+ required: true,
942
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.webhooks.getMany)',
943
+ default: '',
944
+ type: 'options',
945
+ displayOptions: {
946
+ show: {
947
+ resource: [
948
+ 'organizationWebhooks'
949
+ ],
950
+ operation: [
951
+ 'api.webhooks.deliveries.get'
952
+ ]
953
+ }
954
+ },
955
+ typeOptions: {
956
+ loadOptionsMethod: 'getOrganizationWebhooks'
957
+ }
958
+ },
959
+ {
960
+ displayName: 'Delivery Id',
961
+ name: 'deliveryId',
962
+ required: true,
963
+ description: 'ID of the webhook delivery. Get via [List Organization Webhook Deliveries](#operation/api.webhooks.deliveries.getMany) or [List All Organization Webhook Deliveries](#operation/api.webhooks.deliveries.getAll)',
964
+ default: undefined,
965
+ type: 'number',
966
+ displayOptions: {
967
+ show: {
968
+ resource: [
969
+ 'organizationWebhooks'
970
+ ],
971
+ operation: [
972
+ 'api.webhooks.deliveries.get'
973
+ ]
974
+ }
975
+ },
976
+ placeholder: '9051'
977
+ },
978
+ {
979
+ displayName: 'Webhook Ids',
980
+ name: 'webhookIds',
981
+ 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.webhooks.getMany)',
982
+ default: '',
983
+ type: 'string',
984
+ routing: {
985
+ send: {
986
+ type: 'query',
987
+ property: 'webhookIds',
988
+ value: '={{ $value || undefined }}',
989
+ propertyInDotNotation: false
990
+ }
991
+ },
992
+ displayOptions: {
993
+ show: {
994
+ resource: [
995
+ 'organizationWebhooks'
996
+ ],
997
+ operation: [
998
+ 'api.webhooks.deliveries.getAll'
999
+ ]
1000
+ }
1001
+ },
1002
+ placeholder: '4,7'
1003
+ },
1004
+ {
1005
+ displayName: 'Status',
1006
+ name: 'status',
1007
+ 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',
1008
+ default: '',
1009
+ type: 'options',
1010
+ options: [
1011
+ {
1012
+ name: '-',
1013
+ value: ''
1014
+ },
1015
+ {
1016
+ name: 'success',
1017
+ value: 'success'
1018
+ },
1019
+ {
1020
+ name: 'failed',
1021
+ value: 'failed'
1022
+ }
1023
+ ],
1024
+ routing: {
1025
+ send: {
1026
+ type: 'query',
1027
+ property: 'status',
1028
+ value: '={{ $value || undefined }}',
1029
+ propertyInDotNotation: false
1030
+ }
1031
+ },
1032
+ displayOptions: {
1033
+ show: {
1034
+ resource: [
1035
+ 'organizationWebhooks'
1036
+ ],
1037
+ operation: [
1038
+ 'api.webhooks.deliveries.getAll'
1039
+ ]
1040
+ }
1041
+ }
1042
+ },
1043
+ {
1044
+ displayName: 'Events',
1045
+ name: 'events',
1046
+ description: 'Filter results to deliveries of the given events. It can be one event or a list of comma-separated ones',
1047
+ default: '',
1048
+ type: 'string',
1049
+ routing: {
1050
+ send: {
1051
+ type: 'query',
1052
+ property: 'events',
1053
+ value: '={{ $value || undefined }}',
1054
+ propertyInDotNotation: false
1055
+ }
1056
+ },
1057
+ displayOptions: {
1058
+ show: {
1059
+ resource: [
1060
+ 'organizationWebhooks'
1061
+ ],
1062
+ operation: [
1063
+ 'api.webhooks.deliveries.getAll'
1064
+ ]
1065
+ }
1066
+ },
1067
+ placeholder: 'file.translated,file.approved'
1068
+ },
1069
+ {
1070
+ displayName: 'Created After',
1071
+ name: 'dateTime:createdAfter',
1072
+ description: 'Filter results to deliveries sent at or after the given date, in ISO 8601 format',
1073
+ default: '',
1074
+ type: 'dateTime',
1075
+ routing: {
1076
+ send: {
1077
+ type: 'query',
1078
+ property: 'createdAfter',
1079
+ value: '={{ $value || undefined }}',
1080
+ propertyInDotNotation: false
1081
+ }
1082
+ },
1083
+ displayOptions: {
1084
+ show: {
1085
+ resource: [
1086
+ 'organizationWebhooks'
1087
+ ],
1088
+ operation: [
1089
+ 'api.webhooks.deliveries.getAll'
1090
+ ]
1091
+ }
1092
+ },
1093
+ placeholder: '2026-09-28T00:00:00+00:00'
1094
+ },
1095
+ {
1096
+ displayName: 'Created Before',
1097
+ name: 'dateTime:createdBefore',
1098
+ description: 'Filter results to deliveries sent at or before the given date, in ISO 8601 format',
1099
+ default: '',
1100
+ type: 'dateTime',
1101
+ routing: {
1102
+ send: {
1103
+ type: 'query',
1104
+ property: 'createdBefore',
1105
+ value: '={{ $value || undefined }}',
1106
+ propertyInDotNotation: false
1107
+ }
1108
+ },
1109
+ displayOptions: {
1110
+ show: {
1111
+ resource: [
1112
+ 'organizationWebhooks'
1113
+ ],
1114
+ operation: [
1115
+ 'api.webhooks.deliveries.getAll'
1116
+ ]
1117
+ }
1118
+ },
1119
+ placeholder: '2026-09-29T00:00:00+00:00'
1120
+ },
1121
+ {
1122
+ displayName: 'Limit',
1123
+ name: 'limit',
1124
+ description: 'Max number of results to return',
1125
+ default: 50,
1126
+ type: 'number',
1127
+ routing: {
1128
+ send: {
1129
+ type: 'query',
1130
+ property: 'limit',
1131
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
1132
+ propertyInDotNotation: false
1133
+ }
1134
+ },
1135
+ displayOptions: {
1136
+ show: {
1137
+ resource: [
1138
+ 'organizationWebhooks'
1139
+ ],
1140
+ operation: [
1141
+ 'api.webhooks.deliveries.getAll'
1142
+ ],
1143
+ returnAll: [
1144
+ false
1145
+ ]
1146
+ }
1147
+ },
1148
+ typeOptions: {
1149
+ minValue: 1
1150
+ }
1151
+ },
1152
+ {
1153
+ displayName: 'Organization Webhook Id',
1154
+ name: 'organizationWebhookId',
1155
+ required: true,
1156
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.webhooks.getMany)',
1157
+ default: '',
1158
+ type: 'options',
1159
+ displayOptions: {
1160
+ show: {
1161
+ resource: [
1162
+ 'organizationWebhooks'
1163
+ ],
1164
+ operation: [
1165
+ 'api.webhooks.deliveries.resend.post'
1166
+ ]
1167
+ }
1168
+ },
1169
+ typeOptions: {
1170
+ loadOptionsMethod: 'getOrganizationWebhooks'
1171
+ }
1172
+ },
1173
+ {
1174
+ displayName: 'Delivery Id',
1175
+ name: 'deliveryId',
1176
+ required: true,
1177
+ description: 'ID of the webhook delivery. Get via [List Organization Webhook Deliveries](#operation/api.webhooks.deliveries.getMany) or [List All Organization Webhook Deliveries](#operation/api.webhooks.deliveries.getAll)',
1178
+ default: undefined,
1179
+ type: 'number',
1180
+ displayOptions: {
1181
+ show: {
1182
+ resource: [
1183
+ 'organizationWebhooks'
1184
+ ],
1185
+ operation: [
1186
+ 'api.webhooks.deliveries.resend.post'
1187
+ ]
1188
+ }
1189
+ },
1190
+ placeholder: '9051'
1191
+ },
1192
+ {
1193
+ displayName: 'Organization Webhook Id',
1194
+ name: 'organizationWebhookId',
1195
+ required: true,
1196
+ description: 'Webhook Identifier. Get via [List Webhooks](#operation/api.webhooks.getMany)',
1197
+ default: '',
1198
+ type: 'options',
1199
+ displayOptions: {
1200
+ show: {
1201
+ resource: [
1202
+ 'organizationWebhooks'
1203
+ ],
1204
+ operation: [
1205
+ 'api.webhooks.tests.post'
1206
+ ]
1207
+ }
1208
+ },
1209
+ typeOptions: {
1210
+ loadOptionsMethod: 'getOrganizationWebhooks'
1211
+ }
1212
+ },
1213
+ {
1214
+ displayName: 'Event',
1215
+ name: 'event',
1216
+ type: 'string',
1217
+ default: '',
1218
+ description: 'Event to send a sample payload for. Must be one of the webhook `events`. Default is the first event of the webhook',
1219
+ routing: {
1220
+ send: {
1221
+ property: 'event',
1222
+ propertyInDotNotation: false,
1223
+ type: 'body',
1224
+ value: '={{ $value || undefined }}'
1225
+ }
1226
+ },
1227
+ displayOptions: {
1228
+ show: {
1229
+ resource: [
1230
+ 'organizationWebhooks'
1231
+ ],
1232
+ operation: [
1233
+ 'api.webhooks.tests.post'
1234
+ ]
1235
+ }
1236
+ },
1237
+ placeholder: 'file.translated'
1238
+ },
1239
+ {
1240
+ displayName: 'Update Fields',
1241
+ name: 'updateFields',
1242
+ type: 'collection',
1243
+ placeholder: 'Add Field',
1244
+ default: {},
1245
+ displayOptions: {
1246
+ show: {
1247
+ resource: [
1248
+ 'organizationWebhooks'
1249
+ ],
1250
+ operation: [
1251
+ 'api.webhooks.patch'
1252
+ ]
1253
+ }
1254
+ },
1255
+ options: [
1256
+ {
1257
+ displayName: 'Name',
1258
+ name: 'name',
1259
+ type: 'string',
1260
+ default: '',
1261
+ description: 'Webhook name',
1262
+ placeholder: 'Proofread'
1263
+ },
1264
+ {
1265
+ displayName: 'Is Active',
1266
+ name: 'isActive',
1267
+ type: 'boolean',
1268
+ default: true,
1269
+ description: 'Defines whether webhook is active'
1270
+ },
1271
+ {
1272
+ displayName: 'Batching Enabled',
1273
+ name: 'batchingEnabled',
1274
+ type: 'boolean',
1275
+ default: false,
1276
+ description: 'Defines whether webhook batching is enabled'
1277
+ },
1278
+ {
1279
+ displayName: 'Content Type',
1280
+ name: 'contentType',
1281
+ type: 'options',
1282
+ default: '',
1283
+ description: 'Webhook content type',
1284
+ options: [
1285
+ {
1286
+ name: '-',
1287
+ value: ''
1288
+ },
1289
+ {
1290
+ name: 'multipart/form-data',
1291
+ value: 'multipart/form-data'
1292
+ },
1293
+ {
1294
+ name: 'application/json',
1295
+ value: 'application/json'
1296
+ },
1297
+ {
1298
+ name: 'application/x-www-form-urlencoded',
1299
+ value: 'application/x-www-form-urlencoded'
1300
+ }
1301
+ ]
1302
+ },
1303
+ {
1304
+ displayName: 'Events',
1305
+ name: 'events',
1306
+ type: 'multiOptions',
1307
+ default: [],
1308
+ description: 'Webhook events',
1309
+ options: [
1310
+ {
1311
+ name: 'project.created',
1312
+ value: 'project.created'
1313
+ },
1314
+ {
1315
+ name: 'project.deleted',
1316
+ value: 'project.deleted'
1317
+ }
1318
+ ]
1319
+ },
1320
+ {
1321
+ displayName: 'Headers',
1322
+ name: 'json:headers',
1323
+ type: 'json',
1324
+ default: '{}',
1325
+ description: 'Webhook headers',
1326
+ placeholder: '{"Accept":"application/xml"}'
1327
+ },
1328
+ {
1329
+ displayName: 'Request Type',
1330
+ name: 'requestType',
1331
+ type: 'options',
1332
+ default: '',
1333
+ description: 'Webhook request type',
1334
+ options: [
1335
+ {
681
1336
  name: '-',
682
1337
  value: ''
683
1338
  },
@@ -738,6 +1393,40 @@ exports.organizationWebhooksProperties = [
738
1393
  ]
739
1394
  }
740
1395
  }
1396
+ },
1397
+ {
1398
+ displayName: 'Return All',
1399
+ name: 'returnAll',
1400
+ type: 'boolean',
1401
+ default: true,
1402
+ description: 'Whether to return all results or only up to a given limit',
1403
+ displayOptions: {
1404
+ show: {
1405
+ resource: [
1406
+ 'organizationWebhooks'
1407
+ ],
1408
+ operation: [
1409
+ 'api.webhooks.deliveries.getMany'
1410
+ ]
1411
+ }
1412
+ }
1413
+ },
1414
+ {
1415
+ displayName: 'Return All',
1416
+ name: 'returnAll',
1417
+ type: 'boolean',
1418
+ default: true,
1419
+ description: 'Whether to return all results or only up to a given limit',
1420
+ displayOptions: {
1421
+ show: {
1422
+ resource: [
1423
+ 'organizationWebhooks'
1424
+ ],
1425
+ operation: [
1426
+ 'api.webhooks.deliveries.getAll'
1427
+ ]
1428
+ }
1429
+ }
741
1430
  }
742
1431
  ];
743
1432
  //# sourceMappingURL=organizationWebhooks.js.map