n8n-nodes-close-crm
Version:
N8N community node for Close CRM integration with comprehensive lead, opportunity, task, note, call management, and enhanced triggers for workflow automation
31 lines (30 loc) • 1.03 kB
TypeScript
import { IHookFunctions, IWebhookFunctions, INodeType, INodeTypeDescription, IWebhookResponseData } from 'n8n-workflow';
type CloseWebhookPayload = {
event?: unknown;
data?: {
id?: unknown;
status?: unknown;
old_status?: unknown;
previous_status?: unknown;
previous?: {
status?: unknown;
};
} & Record<string, unknown>;
} & Record<string, unknown>;
export declare function evaluateCustomActivityWebhook(payload: CloseWebhookPayload, cachedStatus?: string): {
shouldEmit: boolean;
activityId?: string;
currentStatus?: string;
};
export declare class CloseTrigger implements INodeType {
description: INodeTypeDescription;
webhookMethods: {
default: {
checkExists(this: IHookFunctions): Promise<boolean>;
create(this: IHookFunctions): Promise<boolean>;
delete(this: IHookFunctions): Promise<boolean>;
};
};
webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
}
export {};