n8n-nodes-base
Version:
Base nodes of n8n
58 lines (54 loc) • 1.46 kB
text/typescript
/**
* Customer.io Node - Version 1
* Discriminator: resource=event, operation=trackAnonymous
*/
interface Credentials {
customerIoApi: CredentialReference;
}
/** Track an anonymous event */
export type CustomerIoV1EventTrackAnonymousParams = {
resource: 'event';
operation: 'trackAnonymous';
/**
* The unique identifier for the customer
*/
eventName?: string | Expression<string> | PlaceholderValue;
/**
* JSON Parameters
* @default false
*/
jsonParameters?: boolean | Expression<boolean>;
/**
* 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<string>;
/**
* Additional Fields
* @displayOptions.show { jsonParameters: [false] }
* @default {}
*/
additionalFields?: {
/** Custom Properties
* @default {}
*/
customAttributes?: {
/** Attribute
*/
customAttribute?: Array<{
/** Attribute name
*/
key?: string | Expression<string> | PlaceholderValue;
/** Attribute value
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
};
};
export type CustomerIoV1EventTrackAnonymousNode = {
type: 'n8n-nodes-base.customerIo';
version: 1;
credentials?: Credentials;
config: NodeConfig<CustomerIoV1EventTrackAnonymousParams>;
};