/** * Customer.io Node - Version 1 * Discriminator: resource=event, operation=track */ interface Credentials { customerIoApi: CredentialReference; } /** Track a customer event */ export type CustomerIoV1EventTrackParams = { resource: 'event'; operation: 'track'; /** * The unique identifier for the customer */ customerId?: string | Expression | PlaceholderValue; /** * Name of the event to track */ eventName?: string | Expression | PlaceholderValue; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Object of values to set as described <a href="https://customer.io/docs/api-triggered-data-format#basic-data-formatting">here</a> * @displayOptions.show { jsonParameters: [true] } */ additionalFieldsJson?: IDataObject | string | Expression; /** * Additional Fields * @displayOptions.show { jsonParameters: [false] } * @default {} */ additionalFields?: { /** Custom Properties * @default {} */ customAttributes?: { /** Attribute */ customAttribute?: Array<{ /** Attribute name */ key?: string | Expression | PlaceholderValue; /** Attribute value */ value?: string | Expression | PlaceholderValue; }>; }; /** Used to change event type. For Page View events set to "page". */ type?: string | Expression | PlaceholderValue; }; }; export type CustomerIoV1EventTrackOutput = { success?: boolean; }; export type CustomerIoV1EventTrackNode = { type: 'n8n-nodes-base.customerIo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };