n8n-nodes-base
Version:
Base nodes of n8n
43 lines (37 loc) • 1.3 kB
text/typescript
/**
* Pipedrive Trigger Node - Version 1
* Starts the workflow when Pipedrive events occur
*/
export interface PipedriveTriggerV1Params {
authentication?: 'apiToken' | 'oAuth2' | Expression<string>;
/**
* If authentication should be activated for the webhook (makes it more secure)
* @default none
*/
incomingAuthentication?: 'basicAuth' | 'none' | Expression<string>;
/**
* Type of action to receive notifications about
* @default *
*/
action?: 'added' | '*' | 'deleted' | 'merged' | 'updated' | Expression<string>;
/**
* Type of object to receive notifications about
* @default *
*/
object?: 'activity' | 'activityType' | '*' | 'deal' | 'note' | 'organization' | 'person' | 'pipeline' | 'product' | 'stage' | 'user' | Expression<string>;
}
export interface PipedriveTriggerV1Credentials {
pipedriveApi: CredentialReference;
pipedriveOAuth2Api: CredentialReference;
httpBasicAuth: CredentialReference;
}
interface PipedriveTriggerV1NodeBase {
type: 'n8n-nodes-base.pipedriveTrigger';
version: 1;
credentials?: PipedriveTriggerV1Credentials;
isTrigger: true;
}
export type PipedriveTriggerV1ParamsNode = PipedriveTriggerV1NodeBase & {
config: NodeConfig<PipedriveTriggerV1Params>;
};
export type PipedriveTriggerV1Node = PipedriveTriggerV1ParamsNode;