/** * HubSpot Node - Version 2.1 * Discriminator: resource=ticket, operation=create */ interface Credentials { hubspotApi: CredentialReference; hubspotAppToken: CredentialReference; hubspotOAuth2Api: CredentialReference; } /** Create a company */ export type HubspotV21TicketCreateParams = { resource: 'ticket'; operation: 'create'; authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression; /** * The ID of the pipeline the ticket is in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ pipelineId?: string | Expression; /** * The stage ID of the pipeline the ticket is in; depends on Pipeline ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ stageId?: string | Expression; /** * Ticket Name */ ticketName?: string | Expression | PlaceholderValue; /** * Ticket Properties * @default {} */ additionalFields?: { /** Whether to include specific Company properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ associatedCompanyIds?: string[]; /** Whether to include specific Contact properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ associatedContactIds?: string[]; /** Main reason customer reached out for help. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ category?: string | Expression; /** The date the ticket was closed. When using expressions, the time should be specified in YYYY-MM-DD hh-mm-ss format. */ closeDate?: string | Expression; /** The date the ticket was created. When using expressions, the time should be specified in YYYY-MM-DD hh-mm-ss format. */ createDate?: string | Expression; /** Description of the ticket */ description?: string | Expression | PlaceholderValue; /** The level of attention needed on the ticket. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ priority?: string | Expression; /** The action taken to resolve the ticket. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ resolution?: string | Expression; /** Channel where ticket was originally submitted. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ source?: string | Expression; /** The user from your team that the ticket is assigned to. You can assign additional users to a ticket record by creating a custom HubSpot user property. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ ticketOwnerId?: string | Expression; }; }; export type HubspotV21TicketCreateNode = { type: 'n8n-nodes-base.hubspot'; version: 2.1; credentials?: Credentials; config: NodeConfig; };