/** * Zendesk Node - Version 1 * Discriminator: resource=ticket, operation=create */ interface Credentials { zendeskApi: CredentialReference; zendeskOAuth2Api: CredentialReference; } /** Tickets are the means through which your end users (customers) communicate with agents in Zendesk Support */ export type ZendeskV1TicketCreateParams = { resource: 'ticket'; operation: 'create'; authentication?: 'apiToken' | 'oAuth2' | Expression; /** * The first comment on the ticket */ description?: string | Expression | PlaceholderValue; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Additional Fields * @displayOptions.show { jsonParameters: [false] } * @default {} */ additionalFields?: { /** Custom Fields * @default {} */ customFieldsUi?: { /** Custom Field */ customFieldsValues?: Array<{ /** Custom field ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ id?: string | Expression; /** Custom field Value */ value?: string | Expression | PlaceholderValue; }>; }; /** An ID you can use to link Zendesk Support tickets to local records */ externalId?: string | Expression | PlaceholderValue; /** The group this ticket is assigned to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ group?: string | Expression; /** The original recipient e-mail address of the ticket */ recipient?: string | Expression | PlaceholderValue; /** The state of the ticket */ status?: 'closed' | 'new' | 'hold' | 'open' | 'pending' | 'solved' | Expression; /** The value of the subject field for this ticket */ subject?: string | Expression | PlaceholderValue; /** The array of tags applied to this ticket. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ tags?: string[]; /** The type of this ticket */ type?: 'question' | 'incident' | 'problem' | 'task' | Expression; }; /** * Object of values to set as described <a href="https://developer.zendesk.com/rest_api/docs/support/tickets">here</a> * @displayOptions.show { jsonParameters: [true] } */ additionalFieldsJson?: IDataObject | string | Expression; }; export type ZendeskV1TicketCreateOutput = { allow_attachments?: boolean; allow_channelback?: boolean; brand_id?: number; collaborator_ids?: Array; created_at?: string; custom_fields?: Array<{ id?: number; }>; custom_status_id?: number; description?: string; due_at?: null; encoded_id?: string; fields?: Array<{ id?: number; }>; follower_ids?: Array; forum_topic_id?: null; from_messaging_channel?: boolean; generated_timestamp?: number; has_incidents?: boolean; id?: number; is_public?: boolean; problem_id?: null; requester_id?: number; satisfaction_rating?: { score?: string; }; status?: string; submitter_id?: number; tags?: Array; ticket_form_id?: number; updated_at?: string; url?: string; via?: { channel?: string; source?: { rel?: null; }; }; }; export type ZendeskV1TicketCreateNode = { type: 'n8n-nodes-base.zendesk'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };