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
Add internal notes support to Gorgias OAuth integration (#17605)
* Add internal notes support to Gorgias OAuth integration
- Add channel prop to create-ticket-message action with internal-note support
- Add conditional logic to skip sender/receiver validation for internal notes
- Create internal-note-created webhook source for monitoring internal note events
- Add JSDoc documentation to all methods
- Update package.json version
* Fix processHistoricalEvent error in internal-note-created source
Add empty deploy() hook to prevent base class from attempting to process
historical events, matching the pattern used in ticket-message-created source.
This resolves the "processHistoricalEvent is not implemented" error.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix linting errors in Gorgias OAuth components
- Fix multiline-ternary formatting in create-ticket-message.mjs
- Remove unused constants import from internal-note-created.mjs
- Add missing newline at end of internal-note-created.mjs
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* updates
* pnpm-lock.yaml
---------
Co-authored-by: Job Nijenhuis <job@neople.io>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Michelle Bergeron <michelle.bergeron@gmail.com>
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