From 957b2d6108dccd9495291c4764816cc27e112e87 Mon Sep 17 00:00:00 2001 From: Nico Weichbrodt Date: Wed, 3 Jul 2024 09:55:02 +0200 Subject: [PATCH] feat(Zammad Node): Add reply_to and sender fields to article on ticket creation (#9911) --- .../Zammad/descriptions/TicketDescription.ts | 28 +++++++++++++++++++ packages/nodes-base/nodes/Zammad/types.ts | 2 ++ 2 files changed, 30 insertions(+) diff --git a/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts b/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts index 882b2cac79..87168eb06c 100644 --- a/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts +++ b/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts @@ -176,6 +176,28 @@ export const ticketDescription: INodeProperties[] = [ }, ], }, + { + displayName: 'Sender', + name: 'sender', + type: 'options', + // https://docs.zammad.org/en/latest/api/ticket/articles.html + options: [ + { + name: 'Agent', + value: 'Agent', + }, + { + name: 'Customer', + value: 'Customer', + }, + { + name: 'System', + value: 'System', + description: 'Only subject will be displayed in Zammad', + }, + ], + default: 'Agent', + }, { displayName: 'Article Type', name: 'type', @@ -209,6 +231,12 @@ export const ticketDescription: INodeProperties[] = [ ], default: 'note', }, + { + displayName: 'Reply To', + name: 'reply_to', + type: 'string', + default: '', + }, ], }, ], diff --git a/packages/nodes-base/nodes/Zammad/types.ts b/packages/nodes-base/nodes/Zammad/types.ts index e9cc72226f..9c6f2e7b2a 100644 --- a/packages/nodes-base/nodes/Zammad/types.ts +++ b/packages/nodes-base/nodes/Zammad/types.ts @@ -89,7 +89,9 @@ export declare namespace Zammad { visibility: 'external' | 'internal'; subject: string; body: string; + sender: 'Agent' | 'Customer' | 'System'; type: 'chat' | 'email' | 'fax' | 'note' | 'phone' | 'sms'; + reply_to: string; }; }; }