/** * Customer.io Node - Version 1 * Discriminator: resource=customer, operation=upsert */ interface Credentials { customerIoApi: CredentialReference; } /** Create a new customer, or update the current one if it already exists (upsert) */ export type CustomerIoV1CustomerUpsertParams = { resource: 'customer'; operation: 'upsert'; /** * The unique identifier for the customer */ id?: string | Expression | PlaceholderValue; /** * 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?: { /** Custom Properties * @default {} */ customProperties?: { /** Property */ customProperty?: Array<{ /** Property name */ key?: string | Expression | PlaceholderValue; /** Property value */ value?: string | Expression | PlaceholderValue; }>; }; /** The email address of the user */ email?: string | Expression | PlaceholderValue; /** The UNIX timestamp from when the user was created */ createdAt?: string | Expression; }; }; export type CustomerIoV1CustomerUpsertOutput = { email?: string; }; export type CustomerIoV1CustomerUpsertNode = { type: 'n8n-nodes-base.customerIo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };