/** * Agile CRM Node - Version 1 * Discriminator: resource=contact, operation=create */ interface Credentials { agileCrmApi: CredentialReference; } /** Create a new contact */ export type AgileCrmV1ContactCreateParams = { resource: 'contact'; operation: 'create'; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Object of values to set as described <a href="https://github.com/agilecrm/rest-api#1-contacts---companies-api">here</a> * @displayOptions.show { jsonParameters: [true] } */ additionalFieldsJson?: IDataObject | string | Expression; /** * Additional Fields * @displayOptions.show { jsonParameters: [false] } * @default {} */ additionalFields?: { /** Contacts address * @default {} */ addressOptions?: { /** Address Properties */ addressProperties?: Array<{ /** Type of address */ subtype?: 'home' | 'postal' | 'office' | Expression; /** Full address */ address?: string | Expression | PlaceholderValue; }>; }; /** Company Name */ company?: string | Expression | PlaceholderValue; /** Contact email * @default {} */ emailOptions?: { /** Email Properties */ emailProperties?: Array<{ /** Type of Email */ subtype?: 'work' | 'personal' | Expression; /** Email */ email?: string | Expression | PlaceholderValue; }>; }; /** Contact first name */ firstName?: string | Expression | PlaceholderValue; /** Contact last name */ lastName?: string | Expression | PlaceholderValue; /** Lead score of contact */ leadScore?: number | Expression; /** Rating of contact (Max value 5). This is not applicable for companies. */ starValue?: 0 | 1 | 2 | 3 | 4 | 5 | Expression; /** Contacts phone * @default {} */ phoneOptions?: { /** Phone Properties */ phoneProperties?: Array<{ /** Type of phone number */ subtype?: 'home' | 'homeFax' | 'main' | 'mobile' | 'other' | 'work' | 'workFax' | Expression; /** Phone number */ number?: string | Expression | PlaceholderValue; }>; }; /** Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies. * @default [] */ tags?: string | Expression | PlaceholderValue; /** Professional title */ title?: string | Expression | PlaceholderValue; /** Contacts websites * @default {} */ websiteOptions?: { /** Website Properties. */ websiteProperties?: Array<{ /** Type of website */ subtype?: 'facebook' | 'feed' | 'flickr' | 'github' | 'googlePlus' | 'linkedin' | 'skype' | 'twitter' | 'url' | 'xing' | 'youtube' | Expression; /** Website URL */ url?: string | Expression | PlaceholderValue; }>; }; /** Custom Properties * @default {} */ customProperties?: { /** Property */ customProperty?: Array<{ /** Property name */ name?: string | Expression | PlaceholderValue; /** Property sub type */ subtype?: string | Expression | PlaceholderValue; /** Property value */ value?: string | Expression | PlaceholderValue; }>; }; }; }; export type AgileCrmV1ContactCreateNode = { type: 'n8n-nodes-base.agileCrm'; version: 1; credentials?: Credentials; config: NodeConfig; };