@pipedream/zendesk 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export default {
5
5
  name: "Create Ticket",
6
6
  description: "Creates a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#create-ticket).",
7
7
  type: "action",
8
- version: "0.1.3",
8
+ version: "0.1.4",
9
9
  props: {
10
10
  app,
11
11
  ticketCommentBody: {
@@ -5,7 +5,7 @@ export default {
5
5
  name: "Delete Ticket",
6
6
  description: "Deletes a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#delete-ticket).",
7
7
  type: "action",
8
- version: "0.1.3",
8
+ version: "0.1.4",
9
9
  props: {
10
10
  app,
11
11
  ticketId: {
@@ -5,7 +5,7 @@ export default {
5
5
  name: "Get Ticket Info",
6
6
  description: "Retrieves information about a specific ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket).",
7
7
  type: "action",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  ticketId: {
@@ -5,7 +5,7 @@ export default {
5
5
  name: "List Tickets",
6
6
  description: "Retrieves a list of tickets. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-tickets).",
7
7
  type: "action",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  sortBy: {
@@ -5,7 +5,7 @@ export default {
5
5
  name: "Search Tickets",
6
6
  description: "Searches for tickets using Zendesk's search API. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#search-tickets).",
7
7
  type: "action",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  query: {
@@ -5,7 +5,7 @@ export default {
5
5
  name: "Update Ticket",
6
6
  description: "Updates a ticket. [See the documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket).",
7
7
  type: "action",
8
- version: "0.1.3",
8
+ version: "0.1.4",
9
9
  props: {
10
10
  app,
11
11
  ticketId: {
@@ -20,6 +20,12 @@ export default {
20
20
  "ticketCommentBody",
21
21
  ],
22
22
  },
23
+ ticketCommentBodyIsHTML: {
24
+ propDefinition: [
25
+ app,
26
+ "ticketCommentBodyIsHTML",
27
+ ],
28
+ },
23
29
  ticketPriority: {
24
30
  propDefinition: [
25
31
  app,
@@ -38,6 +44,12 @@ export default {
38
44
  "ticketStatus",
39
45
  ],
40
46
  },
47
+ ticketCommentPublic: {
48
+ propDefinition: [
49
+ app,
50
+ "ticketCommentPublic",
51
+ ],
52
+ },
41
53
  customSubdomain: {
42
54
  propDefinition: [
43
55
  app,
@@ -59,21 +71,31 @@ export default {
59
71
  const {
60
72
  ticketId,
61
73
  ticketCommentBody,
74
+ ticketCommentBodyIsHTML,
62
75
  ticketPriority,
63
76
  ticketSubject,
64
77
  ticketStatus,
78
+ ticketCommentPublic,
65
79
  customSubdomain,
66
80
  } = this;
67
81
 
82
+ const ticketComment = ticketCommentBodyIsHTML
83
+ ? {
84
+ html_body: ticketCommentBody,
85
+ }
86
+ : {
87
+ body: ticketCommentBody,
88
+ };
89
+
90
+ ticketComment.public = ticketCommentPublic;
91
+
68
92
  const response = await this.updateTicket({
69
93
  step,
70
94
  ticketId,
71
95
  customSubdomain,
72
96
  data: {
73
97
  ticket: {
74
- comment: {
75
- body: ticketCommentBody,
76
- },
98
+ comment: ticketComment,
77
99
  priority: ticketPriority,
78
100
  subject: ticketSubject,
79
101
  status: ticketStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/zendesk",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Pipedream Zendesk Components",
5
5
  "main": "zendesk.app.mjs",
6
6
  "keywords": [
@@ -6,7 +6,7 @@ export default {
6
6
  key: "zendesk-new-ticket",
7
7
  type: "source",
8
8
  description: "Emit new event when a ticket is created",
9
- version: "0.2.3",
9
+ version: "0.2.4",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "zendesk-ticket-added-to-view",
6
6
  name: "New Ticket Added to View (Instant)",
7
7
  description: "Emit new event when a ticket is added to the specified view",
8
- version: "0.0.3",
8
+ version: "0.0.4",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "zendesk-ticket-closed",
7
7
  type: "source",
8
8
  description: "Emit new event when a ticket has changed to closed status",
9
- version: "0.2.3",
9
+ version: "0.2.4",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "zendesk-ticket-pended",
7
7
  type: "source",
8
8
  description: "Emit new event when a ticket has changed to pending status",
9
- version: "0.2.3",
9
+ version: "0.2.4",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "zendesk-ticket-solved",
7
7
  type: "source",
8
8
  description: "Emit new event when a ticket has changed to solved status",
9
- version: "0.2.3",
9
+ version: "0.2.4",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "zendesk-ticket-updated",
7
7
  type: "source",
8
8
  description: "Emit new event when a ticket has been updated",
9
- version: "0.2.3",
9
+ version: "0.2.4",
10
10
  dedupe: "unique",
11
11
  methods: {
12
12
  ...common.methods,
package/zendesk.app.mjs CHANGED
@@ -9,6 +9,7 @@ export default {
9
9
  type: "string",
10
10
  label: "Trigger Category ID",
11
11
  description: "The ID of the trigger category. [See the docs here](https://developer.zendesk.com/api-reference/ticketing/business-rules/trigger_categories/#list-trigger-categories)",
12
+ optional: true,
12
13
  async options({ prevContext }) {
13
14
  const { afterCursor } = prevContext;
14
15
 
@@ -124,6 +125,13 @@ export default {
124
125
  label: "Comment body",
125
126
  description: "The body of the comment.",
126
127
  },
128
+ ticketCommentBodyIsHTML: {
129
+ type: "boolean",
130
+ label: "Comment body is HTML",
131
+ description: "Whether the comment body is HTML. Default is `false`, which expects Markdown",
132
+ default: false,
133
+ optional: true,
134
+ },
127
135
  ticketPriority: {
128
136
  type: "string",
129
137
  label: "Ticket Priority",
@@ -144,6 +152,13 @@ export default {
144
152
  optional: true,
145
153
  options: Object.values(constants.TICKET_STATUS_OPTIONS),
146
154
  },
155
+ ticketCommentPublic: {
156
+ type: "boolean",
157
+ label: "Comment Public",
158
+ description: "Whether the comment is public. Default is `true`",
159
+ default: true,
160
+ optional: true,
161
+ },
147
162
  sortBy: {
148
163
  type: "string",
149
164
  label: "Sort By",