Commit 71a52a1
Merging pull request #18108
* Add file attachment support to Zendesk update-ticket action
- Add attachments prop definition to zendesk.app.mjs for multiple file uploads
- Add uploadFile() and uploadFiles() helper methods with MIME type detection
- Modify update-ticket action to support file attachments via Zendesk uploads API
- Update version to 0.2.0 and package version to 0.7.2
- Enhanced success message to show attachment count
* Address CodeRabbit feedback
- Add guard for missing upload token and fail fast with clear error message
- Remove duplicate summary emission from uploadFiles method
- Use actual upload token count instead of input array length for summary
* Implement comprehensive URL support and improve file handling
- Add full HTTP/HTTPS URL support with axios for remote file fetching
- Extract filename from Content-Disposition header or URL path for URLs
- Use response Content-Type when available for better MIME detection
- Replace blocking readFileSync with async fs.promises.readFile
- Add proper input validation and JSDoc documentation
- Implement concurrent uploads with Promise.allSettled for better performance
- Add comprehensive error aggregation showing all failed uploads
- Filter and trim attachment input for robustness
* up versions
* lock change for some reason
* updates
* pnpm-lock.yaml
* update @pipedream/platform dependency
* pnpm-lock.yaml
---------
Co-authored-by: Job <[email protected]>
Co-authored-by: Job Nijenhuis <[email protected]>
Co-authored-by: Michelle Bergeron <[email protected]>1 parent 59b21cc commit 71a52a1
File tree
24 files changed
+159
-27
lines changed- components/zendesk
- actions
- add-ticket-tags
- create-ticket
- delete-ticket
- get-ticket-info
- get-user-info
- list-locales
- list-macros
- list-ticket-comments
- list-tickets
- remove-ticket-tags
- search-tickets
- set-ticket-tags
- update-ticket
- sources
- locale-updated
- new-ticket-comment-added
- new-ticket
- ticket-added-to-view
- ticket-closed
- ticket-pended
- ticket-solved
- ticket-updated
24 files changed
+159
-27
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments