n8n-nodes-base
Version:
Base nodes of n8n
58 lines (54 loc) • 1.57 kB
text/typescript
/**
* ConvertKit Node - Version 1
* Discriminator: resource=sequence, operation=addSubscriber
*/
interface Credentials {
convertKitApi: CredentialReference;
}
/** Add a subscriber */
export type ConvertKitV1SequenceAddSubscriberParams = {
resource: 'sequence';
operation: 'addSubscriber';
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
id?: string | Expression<string>;
/**
* The subscriber's email address
*/
email?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Object of key/value pairs for custom fields (the custom field must exist before you can use it here)
* @default {}
*/
fieldsUi?: {
/** Custom Field
*/
fieldsValues?: Array<{
/** The field's key
*/
key?: string | Expression<string> | PlaceholderValue;
/** Value of the field
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
/** The subscriber's first name
*/
firstName?: string | Expression<string> | PlaceholderValue;
/** Tags. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
tags?: string[];
};
};
export type ConvertKitV1SequenceAddSubscriberNode = {
type: 'n8n-nodes-base.convertKit';
version: 1;
credentials?: Credentials;
config: NodeConfig<ConvertKitV1SequenceAddSubscriberParams>;
};