UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

58 lines (54 loc) 1.57 kB
/** * 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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt; */ 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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;. * @default [] */ tags?: string[]; }; }; export type ConvertKitV1SequenceAddSubscriberNode = { type: 'n8n-nodes-base.convertKit'; version: 1; credentials?: Credentials; config: NodeConfig<ConvertKitV1SequenceAddSubscriberParams>; };