You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/gorgias_oauth/actions/create-ticket-message/create-ticket-message.mjs
+80-40Lines changed: 80 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ export default {
7
7
key: "gorgias_oauth-create-ticket-message",
8
8
name: "Create Ticket Message",
9
9
description: "Create a message for a ticket in the Gorgias system. [See the documentation](https://developers.gorgias.com/reference/create-ticket-message)",
10
-
version: "0.0.2",
10
+
version: "0.0.3",
11
11
type: "action",
12
12
props: {
13
13
gorgiasOauth,
@@ -67,6 +67,15 @@ export default {
67
67
label: "Message",
68
68
description: "Message of the ticket. Accepts HTML",
description: "Emit new event when an internal note is created on a ticket. [See the documentation](https://developers.gorgias.com/reference/the-event-object)",
10
+
version: "0.0.1",
11
+
type: "source",
12
+
props: {
13
+
...base.props,
14
+
ticketId: {
15
+
propDefinition: [
16
+
base.props.gorgias_oauth,
17
+
"ticketId",
18
+
],
19
+
optional: true,
20
+
},
21
+
sender: {
22
+
type: "string",
23
+
label: "Sender Email",
24
+
description: "Email address of the sender",
25
+
optional: true,
26
+
},
27
+
},
28
+
hooks: {
29
+
...base.hooks,
30
+
deploy(){},
31
+
},
32
+
methods: {
33
+
...base.methods,
34
+
/**
35
+
* Get the event type for internal notes
36
+
* @returns {string} The event type
37
+
*/
38
+
getEventType(){
39
+
returneventTypes.TICKET_MESSAGE_CREATED;
40
+
},
41
+
/**
42
+
* Check if a message is relevant for this source
43
+
* @param {object} message - The message object
44
+
* @returns {boolean} Whether the message is relevant
0 commit comments