/** * Mautic Node - Version 1 * Discriminator: resource=contact, operation=create */ interface Credentials { mauticApi: CredentialReference; mauticOAuth2Api: CredentialReference; } /** Create & modify contacts */ export type MauticV1ContactCreateParams = { resource: 'contact'; operation: 'create'; authentication?: 'credentials' | 'oAuth2' | Expression; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Email address of the contact * @displayOptions.show { jsonParameters: [false] } */ email?: string | Expression | PlaceholderValue; /** * First Name * @displayOptions.show { jsonParameters: [false] } */ firstName?: string | Expression | PlaceholderValue; /** * Last Name * @displayOptions.show { jsonParameters: [false] } */ lastName?: string | Expression | PlaceholderValue; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { jsonParameters: [false] } */ company?: string | Expression; /** * Position * @displayOptions.show { jsonParameters: [false] } */ position?: string | Expression | PlaceholderValue; /** * Title * @displayOptions.show { jsonParameters: [false] } */ title?: string | Expression | PlaceholderValue; /** * Contact parameters * @displayOptions.show { jsonParameters: [true] } */ bodyJson?: IDataObject | string | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Address * @default {} */ addressUi?: { /** Address */ addressValues?: { /** Address Line 1 */ address1?: string | Expression | PlaceholderValue; /** Address Line 2 */ address2?: string | Expression | PlaceholderValue; /** City */ city?: string | Expression | PlaceholderValue; /** State */ state?: string | Expression | PlaceholderValue; /** Country */ country?: string | Expression | PlaceholderValue; /** Zip Code */ zipCode?: string | Expression | PlaceholderValue; }; }; /** B2B or B2C */ b2bOrb2c?: 'B2B' | 'B2C' | Expression; /** CRM ID */ crmId?: string | Expression | PlaceholderValue; /** Adds a custom fields to set also values which have not been predefined * @default {} */ customFieldsUi?: { /** Field */ customFieldValues?: Array<{ /** ID of the field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ fieldId?: string | Expression; /** Value of the field to set */ fieldValue?: string | Expression | PlaceholderValue; }>; }; /** Fax */ fax?: string | Expression | PlaceholderValue; /** Has Purchased * @default false */ hasPurchased?: boolean | Expression; /** IP address to associate with the contact */ ipAddress?: string | Expression | PlaceholderValue; /** Date/time in UTC; */ lastActive?: string | Expression; /** Mobile */ mobile?: string | Expression | PlaceholderValue; /** ID of a Mautic user to assign this contact to */ ownerId?: string | Expression | PlaceholderValue; /** Phone */ phone?: string | Expression | PlaceholderValue; /** Prospect or Customer */ prospectOrCustomer?: 'Prospect' | 'Customer' | Expression; /** Sandbox * @default false */ sandbox?: boolean | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ stage?: string | Expression; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ tags?: string[]; /** Social Media * @default {} */ socialMediaUi?: { /** Social Media */ socialMediaValues?: { /** Facebook */ facebook?: string | Expression | PlaceholderValue; /** Foursquare */ foursquare?: string | Expression | PlaceholderValue; /** Instagram */ instagram?: string | Expression | PlaceholderValue; /** LinkedIn */ linkedIn?: string | Expression | PlaceholderValue; /** Skype */ skype?: string | Expression | PlaceholderValue; /** Twitter */ twitter?: string | Expression | PlaceholderValue; }; }; /** Website */ website?: string | Expression | PlaceholderValue; }; /** * Options * @displayOptions.hide { operation: ["sendEmail", "editDoNotContactList", "editContactPoint"] } * @default {} */ options?: { /** String or search command to filter entities by * @displayOptions.show { /operation: ["getAll"] } */ search?: string | Expression | PlaceholderValue; /** Column to sort by. Can use any column listed in the response. * @displayOptions.show { /operation: ["getAll"] } */ orderBy?: string | Expression | PlaceholderValue; /** Sort direction: ASC or DESC * @displayOptions.show { /operation: ["getAll"] } */ orderByDir?: 'asc' | 'desc' | Expression; /** Whether to return currently published entities * @displayOptions.show { /operation: ["getAll"] } * @default false */ publishedOnly?: boolean | Expression; /** Whether to return array of entities without additional lists in it * @displayOptions.show { /operation: ["getAll"] } * @default false */ minimal?: boolean | Expression; /** By default only the data of the fields get returned. If this options gets set the RAW response with all data gets returned. * @default true */ rawData?: boolean | Expression; }; }; export type MauticV1ContactCreateNode = { type: 'n8n-nodes-base.mautic'; version: 1; credentials?: Credentials; config: NodeConfig; };