n8n-nodes-base
Version:
Base nodes of n8n
39 lines (33 loc) • 1.12 kB
text/typescript
/**
* GetResponse Trigger Node - Version 1
* Starts the workflow when GetResponse events occur
*/
export interface GetResponseTriggerV1Params {
authentication?: 'apiKey' | 'oAuth2' | Expression<string>;
events?: Array<'subscribe' | 'unsubscribe' | 'click' | 'open' | 'survey'>;
/**
* Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @default []
*/
listIds?: string[];
options?: {
/** Whether to delete the current subscription
* @default false
*/
'delete'?: boolean | Expression<boolean>;
};
}
export interface GetResponseTriggerV1Credentials {
getResponseApi: CredentialReference;
getResponseOAuth2Api: CredentialReference;
}
interface GetResponseTriggerV1NodeBase {
type: 'n8n-nodes-base.getResponseTrigger';
version: 1;
credentials?: GetResponseTriggerV1Credentials;
isTrigger: true;
}
export type GetResponseTriggerV1ParamsNode = GetResponseTriggerV1NodeBase & {
config: NodeConfig<GetResponseTriggerV1Params>;
};
export type GetResponseTriggerV1Node = GetResponseTriggerV1ParamsNode;