n8n-nodes-base
Version:
Base nodes of n8n
76 lines (72 loc) • 3.39 kB
text/typescript
/**
* HubSpot Node - Version 1
* Discriminator: resource=ticket, operation=update
*/
interface Credentials {
hubspotApi: CredentialReference;
hubspotAppToken: CredentialReference;
hubspotOAuth2Api: CredentialReference;
}
/** Update a company */
export type HubspotV1TicketUpdateParams = {
resource: 'ticket';
operation: 'update';
authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression<string>;
/**
* Unique identifier for a particular ticket
*/
ticketId?: string | Expression<string> | PlaceholderValue;
/**
* Update Fields
* @default {}
*/
updateFields?: {
/** Companies associated with the ticket. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
associatedCompanyIds?: string[];
/** Contact associated with the ticket. 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<string>;
/** The date the ticket was closed
*/
closeDate?: string | Expression<string>;
/** The date the ticket was created
*/
createDate?: string | Expression<string>;
/** Description of the ticket
*/
description?: string | Expression<string> | PlaceholderValue;
/** 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<string>;
/** 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<string>;
/** 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<string>;
/** 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<string>;
/** 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<string>;
/** The ID of the pipeline the ticket is in
*/
ticketName?: string | Expression<string> | PlaceholderValue;
/** 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<string>;
};
};
export type HubspotV1TicketUpdateNode = {
type: 'n8n-nodes-base.hubspot';
version: 1;
credentials?: Credentials;
config: NodeConfig<HubspotV1TicketUpdateParams>;
};