diff --git a/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs b/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs index c155e1d75841c..044dd73d14359 100644 --- a/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs +++ b/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs @@ -7,7 +7,7 @@ export default { name: "Add Ticket Attachment", description: "Attaches a file to a ticket. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketAttachments#TicketAttachments_CreateTicketattachment)", type: "action", - version: "0.1.4", + version: "0.1.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs b/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs index b40d4fbd8eaf3..1a4d35a60183d 100644 --- a/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs +++ b/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs @@ -5,7 +5,7 @@ export default { name: "Add Ticket Comment", description: "Adds a comment to a ticket. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketsComments#TicketsComments_Createticketcomment)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/create-account/create-account.mjs b/components/zoho_desk/actions/create-account/create-account.mjs index 8b28e532fea80..0fb5e80c052bd 100644 --- a/components/zoho_desk/actions/create-account/create-account.mjs +++ b/components/zoho_desk/actions/create-account/create-account.mjs @@ -5,7 +5,7 @@ export default { name: "Create Account", description: "Creates an account in your help desk portal. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Accounts#Accounts_CreateAccount)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/create-contact/create-contact.mjs b/components/zoho_desk/actions/create-contact/create-contact.mjs index 27f066117309c..06d5a641e04de 100644 --- a/components/zoho_desk/actions/create-contact/create-contact.mjs +++ b/components/zoho_desk/actions/create-contact/create-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Create Contact", description: "Creates a contact in your help desk portal. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_CreateContact)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/create-ticket/create-ticket.mjs b/components/zoho_desk/actions/create-ticket/create-ticket.mjs index 7218c7cbf4c78..f0fbe7f952931 100644 --- a/components/zoho_desk/actions/create-ticket/create-ticket.mjs +++ b/components/zoho_desk/actions/create-ticket/create-ticket.mjs @@ -5,7 +5,7 @@ export default { name: "Create Ticket", description: "Creates a ticket in your helpdesk. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Createaticket)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/find-contact/find-contact.mjs b/components/zoho_desk/actions/find-contact/find-contact.mjs index ddd4b4235e919..0d243213c02a7 100644 --- a/components/zoho_desk/actions/find-contact/find-contact.mjs +++ b/components/zoho_desk/actions/find-contact/find-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Find Contact", description: "Searches for contacts in your help desk portal. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Search#Search_SearchContacts)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs b/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs index 5d74d1f070661..c32d8d331e9f2 100644 --- a/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs +++ b/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Find or Create Contact", description: "Finds or create a contact. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_CreateContact)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/get-article/get-article.mjs b/components/zoho_desk/actions/get-article/get-article.mjs index 53f0cc36cd489..c746b86cb5dad 100644 --- a/components/zoho_desk/actions/get-article/get-article.mjs +++ b/components/zoho_desk/actions/get-article/get-article.mjs @@ -3,9 +3,9 @@ import zohoDesk from "../../zoho_desk.app.mjs"; export default { key: "zoho_desk-get-article", name: "Get Article", - description: "Retrieves the details of a knowledge base article. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Getarticle)", + description: "Retrieves the details of a knowledge base article. [See the documentation](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Getarticle)", type: "action", - version: "0.0.1", + version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, @@ -32,6 +32,9 @@ export default { propDefinition: [ zohoDesk, "articleId", + ({ portalId }) => ({ + portalId, + }), ], }, }, diff --git a/components/zoho_desk/actions/list-articles/list-articles.mjs b/components/zoho_desk/actions/list-articles/list-articles.mjs index f4b4894fc130f..148f1a6a3f441 100644 --- a/components/zoho_desk/actions/list-articles/list-articles.mjs +++ b/components/zoho_desk/actions/list-articles/list-articles.mjs @@ -2,9 +2,9 @@ import zohoDesk from "../../zoho_desk.app.mjs"; export default { key: "zoho_desk-list-articles", name: "List Articles", - description: "Lists knowledge base articles for a help center. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase#KnowledgeBase_Listarticles)", + description: "Lists knowledge base articles for a help center. [See the documentation](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase#KnowledgeBase_Listarticles)", type: "action", - version: "0.0.1", + version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, @@ -28,15 +28,18 @@ export default { ], }, categoryId: { - type: "string", - label: "Category ID", - description: "Filter by the ID(s) of the categories the articles belong to. Use comma-separated IDs to include multiple categories.", - optional: true, + propDefinition: [ + zohoDesk, + "categoryId", + ({ portalId }) => ({ + portalId, + }), + ], }, sortBy: { type: "string", label: "Sort By", - description: "Sort articles by the specified attribute.", + description: "Sort articles by the specified attribute", optional: true, options: [ "createdTime", @@ -50,7 +53,7 @@ export default { tag: { type: "string", label: "Tag", - description: "Filter articles by a tag.", + description: "Filter articles by a tag", optional: true, }, maxResults: { diff --git a/components/zoho_desk/actions/list-help-centers/list-help-centers.mjs b/components/zoho_desk/actions/list-help-centers/list-help-centers.mjs index 35e18c6051198..738157764562c 100644 --- a/components/zoho_desk/actions/list-help-centers/list-help-centers.mjs +++ b/components/zoho_desk/actions/list-help-centers/list-help-centers.mjs @@ -3,9 +3,9 @@ import zohoDesk from "../../zoho_desk.app.mjs"; export default { key: "zoho_desk-list-help-centers", name: "List Help Centers", - description: "Lists the help centers configured in an organization. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#HelpCenters_Listhelpcenters)", + description: "Lists the help centers configured in an organization. [See the documentation](https://desk.zoho.com/portal/APIDocument.do#HelpCenters_Listhelpcenters)", type: "action", - version: "0.0.1", + version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/list-root-categories/list-root-categories.mjs b/components/zoho_desk/actions/list-root-categories/list-root-categories.mjs index 705ed60ffdd1a..4740b8c409406 100644 --- a/components/zoho_desk/actions/list-root-categories/list-root-categories.mjs +++ b/components/zoho_desk/actions/list-root-categories/list-root-categories.mjs @@ -2,9 +2,9 @@ import zohoDesk from "../../zoho_desk.app.mjs"; export default { key: "zoho_desk-list-root-categories", name: "List Root Categories", - description: "Lists root knowledge base categories for a help center. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Listallrootcategoriesofthehelpcenter)", + description: "Lists root knowledge base categories for a help center. [See the documentation](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Listallrootcategoriesofthehelpcenter)", type: "action", - version: "0.0.1", + version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, @@ -50,8 +50,10 @@ export default { optional: true, }, departmentId: { - type: "string", - label: "Department ID", + propDefinition: [ + zohoDesk, + "departmentId", + ], description: "Filter categories associated with the specified department.", optional: true, }, diff --git a/components/zoho_desk/actions/search-articles/search-articles.mjs b/components/zoho_desk/actions/search-articles/search-articles.mjs index ac327a1b76176..f41c50950c010 100644 --- a/components/zoho_desk/actions/search-articles/search-articles.mjs +++ b/components/zoho_desk/actions/search-articles/search-articles.mjs @@ -2,9 +2,9 @@ import zohoDesk from "../../zoho_desk.app.mjs"; export default { key: "zoho_desk-search-articles", name: "Search Articles", - description: "Searches for knowledge base articles. [See the docs here](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Searcharticles)", + description: "Searches for knowledge base articles. [See the documentation](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Searcharticles)", type: "action", - version: "0.0.1", + version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, @@ -33,10 +33,13 @@ export default { description: "The keywords to search for within articles.", }, categoryId: { - type: "string", - label: "Category ID", - description: "Filter by articles belonging to the specified category.", - optional: true, + propDefinition: [ + zohoDesk, + "categoryId", + ({ portalId }) => ({ + portalId, + }), + ], }, sortBy: { type: "string", diff --git a/components/zoho_desk/actions/search-ticket/search-ticket.mjs b/components/zoho_desk/actions/search-ticket/search-ticket.mjs index d796c741992c5..b0c7a1b728a5b 100644 --- a/components/zoho_desk/actions/search-ticket/search-ticket.mjs +++ b/components/zoho_desk/actions/search-ticket/search-ticket.mjs @@ -5,7 +5,7 @@ export default { name: "Search Ticket", description: "Searches for tickets in your help desk. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Search_TicketsSearchAPI)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs b/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs index 69eea039c1f88..9dc0aaf58c28c 100644 --- a/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs +++ b/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs @@ -5,7 +5,7 @@ export default { name: "Send E-Mail Reply", description: "Sends an email reply. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Threads#Threads_SendEmailReply)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoho_desk/actions/update-contact/update-contact.mjs b/components/zoho_desk/actions/update-contact/update-contact.mjs index 37aba9a9b7312..5f914cb1602a7 100644 --- a/components/zoho_desk/actions/update-contact/update-contact.mjs +++ b/components/zoho_desk/actions/update-contact/update-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Update Contact", description: "Updates details of an existing contact. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_Updateacontact)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/zoho_desk/actions/update-ticket/update-ticket.mjs b/components/zoho_desk/actions/update-ticket/update-ticket.mjs index c87720bbbdf84..3b6c40b36c91e 100644 --- a/components/zoho_desk/actions/update-ticket/update-ticket.mjs +++ b/components/zoho_desk/actions/update-ticket/update-ticket.mjs @@ -5,7 +5,7 @@ export default { name: "Update Ticket", description: "Updates an existing ticket. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Updateaticket)", type: "action", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/zoho_desk/package.json b/components/zoho_desk/package.json index a1d9cc8a895db..41febc4888613 100644 --- a/components/zoho_desk/package.json +++ b/components/zoho_desk/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/zoho_desk", - "version": "0.2.3", + "version": "0.3.0", "description": "Pipedream Zoho_desk Components", "main": "zoho_desk.app.mjs", "keywords": [ diff --git a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs index c73b9eb0baa89..a14e3ca0f1503 100644 --- a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs +++ b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Status Change", description: "Emit new event when a status ticket is changed. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs b/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs index c9f1b02d3dca7..32d8505579744 100644 --- a/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs +++ b/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs @@ -7,7 +7,7 @@ export default { name: "Deleted Article (Instant)", description: "Emit new event when an article is deleted from the recycle bin", type: "source", - version: "0.0.2", + version: "0.0.3", dedupe: "unique", methods: { ...common.methods, diff --git a/components/zoho_desk/sources/new-account/new-account.mjs b/components/zoho_desk/sources/new-account/new-account.mjs index 67fb0cae36a94..8cb7e689de7a3 100644 --- a/components/zoho_desk/sources/new-account/new-account.mjs +++ b/components/zoho_desk/sources/new-account/new-account.mjs @@ -6,7 +6,7 @@ export default { name: "New Account", description: "Emit new event when a new account is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Accounts#Accounts_Listaccounts)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-agent/new-agent.mjs b/components/zoho_desk/sources/new-agent/new-agent.mjs index 61d70dfc2e745..5a9cc0656a87f 100644 --- a/components/zoho_desk/sources/new-agent/new-agent.mjs +++ b/components/zoho_desk/sources/new-agent/new-agent.mjs @@ -6,7 +6,7 @@ export default { name: "New Agent", description: "Emit new event when a new agent is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Agents#Agents_Listagents)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs b/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs index d3510dcd7d7da..1c89b8dbed71d 100644 --- a/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs +++ b/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs @@ -7,7 +7,7 @@ export default { name: "New Article (Instant)", description: "Emit new event when a new article is created", type: "source", - version: "0.0.2", + version: "0.0.3", dedupe: "unique", methods: { ...common.methods, diff --git a/components/zoho_desk/sources/new-contact/new-contact.mjs b/components/zoho_desk/sources/new-contact/new-contact.mjs index c74c58e1f0290..46dc6a7933e0f 100644 --- a/components/zoho_desk/sources/new-contact/new-contact.mjs +++ b/components/zoho_desk/sources/new-contact/new-contact.mjs @@ -6,7 +6,7 @@ export default { name: "New Contact", description: "Emit new event when a new contact is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_Listcontacts)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs index bf829823ab1c2..290e43ad5dc75 100644 --- a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs +++ b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs @@ -8,7 +8,7 @@ export default { name: "New Ticket Attachment", description: "Emit new event when a new ticket attachment is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketAttachments#TicketAttachments_Listticketattachments)", type: "source", - version: "0.1.1", + version: "0.1.2", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs index 9b88a3adc0d38..9ed785162b331 100644 --- a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs +++ b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Comment", description: "Emit new event when a new ticket comment is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketsComments#TicketsComments_Listallticketcomments)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs index a35210821b315..97411f5b1ad78 100644 --- a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs +++ b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Message", description: "Emit new event when a message ticket is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Threads#Threads_Listallthreads)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket/new-ticket.mjs b/components/zoho_desk/sources/new-ticket/new-ticket.mjs index 7aa0887e5dbde..c8bbca714afeb 100644 --- a/components/zoho_desk/sources/new-ticket/new-ticket.mjs +++ b/components/zoho_desk/sources/new-ticket/new-ticket.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket", description: "Emit new event when a new ticket is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs b/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs index d9f75bed01918..ea8bff05c0b29 100644 --- a/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs +++ b/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs @@ -7,7 +7,7 @@ export default { name: "Updated Article (Instant)", description: "Emit new event when an article is updated", type: "source", - version: "0.0.2", + version: "0.0.3", dedupe: "unique", methods: { ...common.methods, diff --git a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs index 9eec721d633ff..1837f643cce77 100644 --- a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs +++ b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs @@ -6,7 +6,7 @@ export default { name: "New Updated Ticket", description: "Emit new event when a ticket is updated. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/zoho_desk.app.mjs b/components/zoho_desk/zoho_desk.app.mjs index ac6a5d4840753..a99e88d2b9312 100644 --- a/components/zoho_desk/zoho_desk.app.mjs +++ b/components/zoho_desk/zoho_desk.app.mjs @@ -126,7 +126,61 @@ export default { articleId: { type: "string", label: "Article ID", - description: "The ID of the knowledge base article.", + description: "The ID of the knowledge base article", + async options({ + portalId, prevContext, + }) { + const { data } = await this.listKnowledgeBaseArticles({ + params: { + portalId, + from: prevContext?.from, + limit: constants.DEFAULT_LIMIT, + }, + }); + return { + options: data?.map(({ + id: value, title: label, + }) => ({ + value, + label, + })) || [], + context: { + from: data?.length + ? data[data.length - 1].id + : null, + }, + }; + }, + }, + categoryId: { + type: "string", + label: "Category ID", + description: "Filter by the ID(s) of the categories the articles belong to. Use comma-separated IDs to include multiple categories.", + optional: true, + async options({ + portalId, prevContext, + }) { + const { data } = await this.listKnowledgeBaseRootCategories({ + params: { + portalId, + from: prevContext?.from, + limit: constants.DEFAULT_LIMIT, + }, + }); + return { + options: data?.map(({ + id: value, name: label, + }) => ({ + value, + label, + })) || [], + context: { + from: data?.length + ? data[data.length - 1].id + : null, + }, + }; + }, }, maxResults: { type: "integer",