/** * Autopilot Node - Version 1 * Discriminator: resource=contact, operation=upsert */ interface Credentials { autopilotApi: CredentialReference; } /** Create a new contact, or update the current one if it already exists (upsert) */ export type AutopilotV1ContactUpsertParams = { resource: 'contact'; operation: 'upsert'; /** * Email address of the contact */ email?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Company */ Company?: string | Expression | PlaceholderValue; /** Custom Fields * @default {} */ customFieldsUi?: string | Expression; /** Fax */ Fax?: string | Expression | PlaceholderValue; /** First Name */ FirstName?: string | Expression | PlaceholderValue; /** Industry */ Industry?: string | Expression | PlaceholderValue; /** Last Name */ LastName?: string | Expression | PlaceholderValue; /** Lead Source */ LeadSource?: string | Expression | PlaceholderValue; /** LinkedIn URL */ LinkedIn?: string | Expression | PlaceholderValue; /** List to which this contact will be added on creation. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ autopilotList?: string | Expression; /** Mailing Country */ MailingCountry?: string | Expression | PlaceholderValue; /** Mailing Postal Code */ MailingPostalCode?: string | Expression | PlaceholderValue; /** Mailing State */ MailingState?: string | Expression | PlaceholderValue; /** Mailing Street */ MailingStreet?: string | Expression | PlaceholderValue; /** Mailing City */ MailingCity?: string | Expression | PlaceholderValue; /** Mobile Phone */ MobilePhone?: string | Expression | PlaceholderValue; /** If provided, will change the email address of the contact identified by the Email field */ newEmail?: string | Expression | PlaceholderValue; /** By default Autopilot notifies registered REST hook endpoints for contact_added/contact_updated events when a new contact is added or an existing contact is updated via API. Disable to skip notifications. * @default true */ notify?: boolean | Expression; /** Number of Employees * @default 0 */ NumberOfEmployees?: number | Expression; /** Owner Name */ owner_name?: string | Expression | PlaceholderValue; /** Phone */ Phone?: string | Expression | PlaceholderValue; /** Salutation */ Salutation?: string | Expression | PlaceholderValue; /** Used to associate a contact with a session */ autopilotSessionId?: string | Expression | PlaceholderValue; /** Status */ Status?: string | Expression | PlaceholderValue; /** Title */ Title?: string | Expression | PlaceholderValue; /** Whether to subscribe or un-subscribe a contact * @default false */ unsubscribed?: boolean | Expression; /** Website URL */ Website?: string | Expression | PlaceholderValue; }; }; export type AutopilotV1ContactUpsertNode = { type: 'n8n-nodes-base.autopilot'; version: 1; credentials?: Credentials; config: NodeConfig; };