/** * Mautic Node - Version 1 * Discriminator: resource=company, operation=create */ interface Credentials { mauticApi: CredentialReference; mauticOAuth2Api: CredentialReference; } /** Create or modify a company */ export type MauticV1CompanyCreateParams = { resource: 'company'; operation: 'create'; authentication?: 'credentials' | 'oAuth2' | Expression; /** * The name of the company to create */ name?: string | Expression | PlaceholderValue; /** * Whether to return a simplified version of the response instead of the raw data * @default true */ simple?: boolean | 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; }; }; /** Annual Revenue * @default 0 */ annualRevenue?: number | Expression; /** Company Email */ companyEmail?: 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; }>; }; /** Description */ description?: string | Expression | PlaceholderValue; /** Fax */ fax?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ industry?: string | Expression; /** Is Published * @default false */ isPublished?: boolean | Expression; /** Number of Employees * @default 0 */ numberOfEmpoyees?: number | Expression; /** Whether empty values are set to fields. Otherwise empty values are skipped. * @default false */ overwriteWithBlank?: boolean | Expression; /** Phone */ phone?: string | Expression | PlaceholderValue; /** Website */ website?: string | Expression | PlaceholderValue; }; }; export type MauticV1CompanyCreateNode = { type: 'n8n-nodes-base.mautic'; version: 1; credentials?: Credentials; config: NodeConfig; };