/** * Agile CRM Node - Version 1 * Discriminator: resource=company, operation=create */ interface Credentials { agileCrmApi: CredentialReference; } /** Create a new contact */ export type AgileCrmV1CompanyCreateParams = { resource: 'company'; 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-companys---companies-api">here</a> * @displayOptions.show { jsonParameters: [true] } */ additionalFieldsJson?: IDataObject | string | Expression; /** * Additional Fields * @displayOptions.show { jsonParameters: [false] } * @default {} */ additionalFields?: { /** Company address * @default {} */ addressOptions?: { /** Address Properties */ addressProperties?: Array<{ /** Type of address */ subtype?: 'postal' | 'office' | Expression; /** Full address */ address?: string | Expression | PlaceholderValue; }>; }; /** Company email */ email?: string | Expression | PlaceholderValue; /** Company name */ name?: string | Expression | PlaceholderValue; /** Company phone */ phone?: string | Expression | PlaceholderValue; /** Rating of company (Max value 5). This is not applicable for companies. */ starValue?: 0 | 1 | 2 | 3 | 4 | 5 | Expression; /** Unique identifiers added to company, for easy management of companys. This is not applicable for companies. * @default [] */ tags?: string | Expression | PlaceholderValue; /** Companies 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 AgileCrmV1CompanyCreateNode = { type: 'n8n-nodes-base.agileCrm'; version: 1; credentials?: Credentials; config: NodeConfig; };