Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
version: "0.1.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/zoho_desk/actions/find-contact/find-contact.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/zoho_desk/actions/get-article/get-article.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Get Article",
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.3",
version: "0.0.4",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import zohoDesk from "../../zoho_desk.app.mjs";

export default {
key: "zoho_desk-get-thread-details",
name: "Get Thread Details",
description: "Retrieve details for a specific thread belonging to a ticket. [See the documentation](https://desk.zoho.com/DeskAPIDocument#Threads_Getathread)",
type: "action",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
zohoDesk,
orgId: {
propDefinition: [
zohoDesk,
"orgId",
],
},
ticketId: {
propDefinition: [
zohoDesk,
"ticketId",
({ orgId }) => ({
orgId,
}),
],
},
threadId: {
propDefinition: [
zohoDesk,
"threadId",
({
orgId, ticketId,
}) => ({
orgId,
ticketId,
}),
],
},
},
async run({ $ }) {
const {
orgId,
ticketId,
threadId,
} = this;

const response = await this.zohoDesk.getThreadDetails({
$,
ticketId,
threadId,
headers: {
orgId,
},
});

$.export("$summary", `Successfully retrieved thread details for thread ID ${threadId}`);

return response.data || response;
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import zohoDesk from "../../zoho_desk.app.mjs";

export default {
key: "zoho_desk-get-ticket-details",
name: "Get Ticket Details",
description: "Retrieve details for a specified ticket. [See the documentation](https://desk.zoho.com/DeskAPIDocument#Tickets_Getaticket)",
type: "action",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
zohoDesk,
orgId: {
propDefinition: [
zohoDesk,
"orgId",
],
},
ticketId: {
propDefinition: [
zohoDesk,
"ticketId",
({ orgId }) => ({
orgId,
}),
],
},
},
async run({ $ }) {
const {
orgId,
ticketId,
} = this;

const response = await this.zohoDesk.getTicketDetails({
$,
ticketId,
headers: {
orgId,
},
});

$.export("$summary", `Successfully retrieved ticket details for ticket ID ${ticketId}`);

return response.data || response;
},
};

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "List Articles",
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.3",
version: "0.0.4",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "List Help Centers",
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.3",
version: "0.0.4",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "List Root Categories",
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.3",
version: "0.0.4",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import zohoDesk from "../../zoho_desk.app.mjs";

export default {
key: "zoho_desk-list-ticket-attachments",
name: "List Ticket Attachments",
description: "List attachments for a specific ticket. [See the documentation](https://desk.zoho.com/DeskAPIDocument#TicketAttachments_Listticketattachments)",
type: "action",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
zohoDesk,
orgId: {
propDefinition: [
zohoDesk,
"orgId",
],
},
ticketId: {
propDefinition: [
zohoDesk,
"ticketId",
({ orgId }) => ({
orgId,
}),
],
},
},
async run({ $ }) {
const {
orgId,
ticketId,
} = this;

const response = await this.zohoDesk.getTicketAttachments({
$,
ticketId,
headers: {
orgId,
},
});

const attachments = response.data || [];
$.export("$summary", `Successfully retrieved ${attachments.length} attachment(s)`);

return attachments;
},
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import zohoDesk from "../../zoho_desk.app.mjs";

export default {
key: "zoho_desk-list-ticket-threads",
name: "List Ticket Threads",
description: "Get a list of threads for a specified ticket. [See the documentation](https://desk.zoho.com/DeskAPIDocument#Threads#Threads_Listallthreads)",
type: "action",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
zohoDesk,
orgId: {
propDefinition: [
zohoDesk,
"orgId",
],
},
ticketId: {
propDefinition: [
zohoDesk,
"ticketId",
({ orgId }) => ({
orgId,
}),
],
},
from: {
propDefinition: [
zohoDesk,
"from",
],
},
limit: {
propDefinition: [
zohoDesk,
"limit",
],
},
},
async run({ $ }) {
const {
orgId,
ticketId,
from,
limit,
} = this;

const params = {};
if (from) params.from = from;
if (limit) params.limit = limit;

const response = await this.zohoDesk.getTicketThreads({
$,
ticketId,
headers: {
orgId,
},
params,
});

const threads = response.data || [];
$.export("$summary", `Successfully retrieved ${threads.length} thread(s)`);

return threads;
},
};
2 changes: 1 addition & 1 deletion components/zoho_desk/actions/list-tickets/list-tickets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "List Tickets",
description: "Lists all tickets in your help desk with optional filtering. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)",
type: "action",
version: "0.0.1",
version: "0.0.2",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Search Articles",
description: "Searches for knowledge base articles. [See the documentation](https://desk.zoho.com/portal/APIDocument.do#KnowledgeBase_Searcharticles)",
type: "action",
version: "0.0.3",
version: "0.0.4",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.7",
version: "0.0.8",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
Loading
Loading