Skip to content

Commit 32a419b

Browse files
authored
17497-zendesk (#17499)
* fix #17497 * modified pnpm * up versions * more pnpm change * improved description * update versions * newline
1 parent 4541a98 commit 32a419b

File tree

14 files changed

+53
-16
lines changed

14 files changed

+53
-16
lines changed

components/zendesk/actions/create-ticket/create-ticket.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Create Ticket",
66
description: "Creates a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#create-ticket).",
77
type: "action",
8-
version: "0.1.3",
8+
version: "0.1.4",
99
props: {
1010
app,
1111
ticketCommentBody: {

components/zendesk/actions/delete-ticket/delete-ticket.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Delete Ticket",
66
description: "Deletes a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#delete-ticket).",
77
type: "action",
8-
version: "0.1.3",
8+
version: "0.1.4",
99
props: {
1010
app,
1111
ticketId: {

components/zendesk/actions/get-ticket-info/get-ticket-info.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Get Ticket Info",
66
description: "Retrieves information about a specific ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket).",
77
type: "action",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
props: {
1010
app,
1111
ticketId: {

components/zendesk/actions/list-tickets/list-tickets.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "List Tickets",
66
description: "Retrieves a list of tickets. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-tickets).",
77
type: "action",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
props: {
1010
app,
1111
sortBy: {

components/zendesk/actions/search-tickets/search-tickets.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Search Tickets",
66
description: "Searches for tickets using Zendesk's search API. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#search-tickets).",
77
type: "action",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
props: {
1010
app,
1111
query: {

components/zendesk/actions/update-ticket/update-ticket.mjs

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Update Ticket",
66
description: "Updates a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket).",
77
type: "action",
8-
version: "0.1.3",
8+
version: "0.1.4",
99
props: {
1010
app,
1111
ticketId: {
@@ -20,6 +20,12 @@ export default {
2020
"ticketCommentBody",
2121
],
2222
},
23+
ticketCommentBodyIsHTML: {
24+
propDefinition: [
25+
app,
26+
"ticketCommentBodyIsHTML",
27+
],
28+
},
2329
ticketPriority: {
2430
propDefinition: [
2531
app,
@@ -38,6 +44,12 @@ export default {
3844
"ticketStatus",
3945
],
4046
},
47+
ticketCommentPublic: {
48+
propDefinition: [
49+
app,
50+
"ticketCommentPublic",
51+
],
52+
},
4153
customSubdomain: {
4254
propDefinition: [
4355
app,
@@ -59,21 +71,31 @@ export default {
5971
const {
6072
ticketId,
6173
ticketCommentBody,
74+
ticketCommentBodyIsHTML,
6275
ticketPriority,
6376
ticketSubject,
6477
ticketStatus,
78+
ticketCommentPublic,
6579
customSubdomain,
6680
} = this;
6781

82+
const ticketComment = ticketCommentBodyIsHTML
83+
? {
84+
html_body: ticketCommentBody,
85+
}
86+
: {
87+
body: ticketCommentBody,
88+
};
89+
90+
ticketComment.public = ticketCommentPublic;
91+
6892
const response = await this.updateTicket({
6993
step,
7094
ticketId,
7195
customSubdomain,
7296
data: {
7397
ticket: {
74-
comment: {
75-
body: ticketCommentBody,
76-
},
98+
comment: ticketComment,
7799
priority: ticketPriority,
78100
subject: ticketSubject,
79101
status: ticketStatus,

components/zendesk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/zendesk",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Pipedream Zendesk Components",
55
"main": "zendesk.app.mjs",
66
"keywords": [

components/zendesk/sources/new-ticket/new-ticket.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "zendesk-new-ticket",
77
type: "source",
88
description: "Emit new event when a ticket is created",
9-
version: "0.2.3",
9+
version: "0.2.4",
1010
dedupe: "unique",
1111
methods: {
1212
...common.methods,

components/zendesk/sources/ticket-added-to-view/ticket-added-to-view.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "zendesk-ticket-added-to-view",
66
name: "New Ticket Added to View (Instant)",
77
description: "Emit new event when a ticket is added to the specified view",
8-
version: "0.0.3",
8+
version: "0.0.4",
99
type: "source",
1010
dedupe: "unique",
1111
props: {

components/zendesk/sources/ticket-closed/ticket-closed.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "zendesk-ticket-closed",
77
type: "source",
88
description: "Emit new event when a ticket has changed to closed status",
9-
version: "0.2.3",
9+
version: "0.2.4",
1010
dedupe: "unique",
1111
methods: {
1212
...common.methods,

0 commit comments

Comments
 (0)