/** * HubSpot Node - Version 2.1 * Discriminator: resource=engagement, operation=create */ interface Credentials { hubspotApi: CredentialReference; hubspotAppToken: CredentialReference; hubspotOAuth2Api: CredentialReference; } /** Create a company */ export type HubspotV21EngagementCreateParams = { resource: 'engagement'; operation: 'create'; authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression; /** * Type */ type?: 'call' | 'email' | 'meeting' | 'task' | Expression; /** * Metadata * @displayOptions.show { type: ["task", "email", "meeting", "call"] } * @default {} */ metadata?: { /** Body */ body?: string | Expression | PlaceholderValue; /** For Object Type */ forObjectType?: 'COMPANY' | 'CONTACT' | Expression; /** Status */ status?: 'COMPLETED' | 'DEFERRED' | 'IN_PROGRESS' | 'NOT_STARTED' | 'WAITING' | Expression; /** Subject */ subject?: string | Expression | PlaceholderValue; }; /** * Engagement Properties * @default {} */ additionalFields?: { /** Associations * @default {} */ associations?: { /** Company IDs */ companyIds?: string | Expression | PlaceholderValue; /** Contact IDs */ contactIds?: string | Expression | PlaceholderValue; /** Deals IDs */ dealIds?: string | Expression | PlaceholderValue; /** Owner IDs */ ownerIds?: string | Expression | PlaceholderValue; /** Owner ID * @default 0 */ ownerId?: number | Expression; /** Ticket IDs */ ticketIds?: string | Expression | PlaceholderValue; }; }; }; export type HubspotV21EngagementCreateOutput = { associations?: { companyIds?: Array; contactIds?: Array; dealIds?: Array; ownerIds?: Array; ticketIds?: Array; }; engagement?: { active?: boolean; bodyPreview?: string; bodyPreviewHtml?: string; bodyPreviewIsTruncated?: boolean; createdAt?: number; id?: number; lastUpdated?: number; portalId?: number; timestamp?: number; type?: string; }; metadata?: { status?: string; }; }; export type HubspotV21EngagementCreateNode = { type: 'n8n-nodes-base.hubspot'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };