/** * Freshdesk Node - Version 1 * Discriminator: resource=ticket, operation=create */ interface Credentials { freshdeskApi: CredentialReference; } /** Create a new ticket */ export type FreshdeskV1TicketCreateParams = { resource: 'ticket'; operation: 'create'; /** * Requester Identification * @default requesterId */ requester?: 'email' | 'facebookId' | 'phone' | 'requesterId' | 'twitterId' | 'uniqueExternalId' | Expression; /** * Value of the identification selected */ requesterIdentificationValue?: string | Expression | PlaceholderValue; /** * Status * @default pending */ status?: 'closed' | 'open' | 'pending' | 'resolved' | Expression; /** * Priority * @default low */ priority?: 'low' | 'medium' | 'high' | 'urgent' | Expression; /** * The channel through which the ticket was created * @default portal */ source?: 'chat' | 'email' | 'feedbackWidget' | 'mobileHelp' | 'OutboundEmail' | 'phone' | 'portal' | Expression; /** * Options * @default {} */ options?: { /** ID of the agent to whom the ticket has been assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ agent?: string | Expression; /** Separated by a comma (,) email addresses added in the 'cc' field of the incoming ticket email */ ccEmails?: string | Expression | PlaceholderValue; /** Company ID of the requester. This attribute can only be set if the Multiple Companies feature is enabled (Estate plan and above). Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ company?: string | Expression; /** HTML content of the ticket */ description?: string | Expression | PlaceholderValue; /** Timestamp that denotes when the ticket is due to be resolved */ dueBy?: string | Expression; /** ID of email config which is used for this ticket. (i.e., support@yourcompany.com/sales@yourcompany.com) If product_id is given and email_config_id is not given, product's primary email_config_id will be set. */ emailConfigId?: number | Expression; /** Timestamp that denotes when the first response is due */ frDueBy?: string | Expression; /** ID of the group to which the ticket has been assigned. The default value is the ID of the group that is associated with the given email_config_id. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ group?: string | Expression; /** Name of the requester */ name?: string | Expression | PlaceholderValue; /** ID of the product to which the ticket is associated. It will be ignored if the email_config_id attribute is set in the request. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ product?: string | Expression; /** Subject of the ticket */ subject?: string | Expression | PlaceholderValue; /** Separated by a comma (,) tags that have been associated with the ticket */ tags?: string | Expression | PlaceholderValue; /** Helps categorize the ticket according to the different kinds of issues your support team deals with * @default Question */ type?: 'Feature Request' | 'Incident' | 'Problem' | 'Question' | 'Refund' | Expression; }; }; export type FreshdeskV1TicketCreateOutput = { created_at?: string; custom_fields?: { cf_reference_number?: null; }; description?: string; description_text?: string; fr_escalated?: boolean; id?: number; is_escalated?: boolean; nr_due_by?: null; nr_escalated?: boolean; priority?: number; requester_id?: number; source?: number; spam?: boolean; status?: number; subject?: string; support_email?: null; tags?: Array; to_emails?: null; updated_at?: string; }; export type FreshdeskV1TicketCreateNode = { type: 'n8n-nodes-base.freshdesk'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };