Commit 5ffba81
Merging pull request #18881
* Fix Zoho Desk search-ticket and add list-tickets with comprehensive props
This commit addresses issue #18798 by adding comprehensive prop definitions
to the Zoho Desk integration, enabling AI to properly configure ticket
search and listing with all available API parameters.
Changes:
- Added new propDefinitions to zoho_desk.app.mjs:
* ticketPriority: Dynamic options from organization fields
* assigneeId: Dynamic options from agents list
* channel: Dynamic options from organization fields
* ticketSortBy: Static sort options (createdTime, modifiedTime, dueDate, relevance)
* from: Pagination offset parameter
* limit: Results limit parameter (max 50)
- Added streaming methods for better pagination:
* getTicketsStream(): Stream paginated ticket lists
* searchTicketsStream(): Stream paginated search results
- Enhanced search-ticket action (v0.0.7):
* Added departmentId filter
* Added status filter
* Added priority filter
* Added assigneeId filter
* Added channel filter
* Added sortBy parameter
* Added from/limit pagination
* Added maxResults parameter
* Implemented streaming for large result sets
- Created new list-tickets action (v0.0.1):
* Full filtering by department, status, priority, assignee, channel, contact
* Sorting options
* Pagination support
* Include parameter for related resources
* Streaming support for large datasets
All changes verified against Zoho Desk API documentation:
- Search Tickets: https://desk.zoho.com/DeskAPIDocument#Search_SearchTickets
- List Tickets: https://desk.zoho.com/DeskAPIDocument#Tickets_Listalltickets
Fixes #18798
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add comprehensive props to all Zoho Desk ticket and contact actions
Extended all Zoho Desk actions with complete prop definitions to enable
AI assistants and users to leverage the full capabilities of the Zoho Desk API.
App file (zoho_desk.app.mjs) enhancements:
- Added accountId propDefinition with dynamic options from accounts
- Added productId propDefinition for product association
- Added category propDefinition for ticket categorization
- Added subCategory propDefinition for sub-categorization
- Added classification propDefinition with dynamic options
- Added dueDate propDefinition for deadline management
Ticket actions enhancements:
create-ticket (v0.0.6 → v0.0.7):
- Added status, priority, assigneeId, channel props (using propDefinitions)
- Added classification, category, subCategory props
- Added dueDate for deadline tracking
- Added email and phone contact fields
- Added productId for product association
- Updated to conditionally include optional fields
update-ticket (v0.0.6 → v0.0.7):
- Made subject optional (was required)
- Added status, priority, assigneeId props
- Added departmentId, contactId, channel props
- Added classification, category, subCategory props
- Added dueDate and productId props
- Updated to conditionally include optional fields
- Now supports updating any ticket field
Contact actions enhancements:
create-contact (v0.0.6 → v0.0.7):
- Added accountId prop using dynamic propDefinition
- Added title prop for job title
- Added description prop for contact notes
- Updated to conditionally include optional fields
update-contact (v0.0.6 → v0.0.7):
- Made lastName optional (was required)
- Added accountId, title, description props
- Updated to conditionally include optional fields
- Now supports updating any contact field
Email reply action fix:
send-email-reply (v0.0.6 → v0.0.7):
- Replaced hardcoded static status options with dynamic ticketStatus propDefinition
- Renamed ticketStatus prop to status for consistency
- Updated to conditionally include optional fields
- Now uses organization-specific status values
All changes verified against Zoho Desk API documentation and tested for syntax errors.
Related to #18798
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* versions
* Refactor ticket streaming methods for reusability
* updates per QA
* remove debug
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Michelle Bergeron <michelle.bergeron@gmail.com>1 parent 474fae1 commit 5ffba81
File tree
31 files changed
+811
-84
lines changed- components/zoho_desk
- actions
- add-ticket-attachment
- add-ticket-comment
- create-account
- create-contact
- create-ticket
- find-contact
- find-or-create-contact
- get-article
- list-articles
- list-help-centers
- list-root-categories
- list-tickets
- search-articles
- search-ticket
- send-email-reply
- update-contact
- update-ticket
- sources
- changed-ticket-status
- deleted-article-instant
- new-account
- new-agent
- new-article-instant
- new-contact
- new-ticket-attachment
- new-ticket-comment
- new-ticket-message
- new-ticket
- updated-article-instant
- updated-ticket
31 files changed
+811
-84
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
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 | | |
| |||
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 | | |
| |||
Lines changed: 39 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
51 | 72 | | |
52 | 73 | | |
53 | 74 | | |
| |||
57 | 78 | | |
58 | 79 | | |
59 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
60 | 84 | | |
61 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
62 | 99 | | |
63 | 100 | | |
64 | 101 | | |
65 | 102 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 103 | + | |
73 | 104 | | |
74 | 105 | | |
75 | 106 | | |
| |||
Lines changed: 102 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
51 | 120 | | |
52 | 121 | | |
53 | 122 | | |
| |||
56 | 125 | | |
57 | 126 | | |
58 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
59 | 139 | | |
60 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
61 | 161 | | |
62 | 162 | | |
63 | 163 | | |
64 | 164 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 165 | + | |
71 | 166 | | |
72 | 167 | | |
73 | 168 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
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 | |
|---|---|---|---|
| |||
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 | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments