@tuanltntu/n8n-nodes-bitrix24
Version:
Comprehensive n8n community node for Bitrix24 API integration with CRM, Tasks, Chat, Telephony, and more
113 lines (112 loc) • 2.8 kB
TypeScript
import { INodeExecutionData } from "n8n-workflow";
import { ResourceHandlerBase } from "./ResourceHandlerBase";
/**
* Handler for Timeline resource operations in Bitrix24
*/
export declare class TimelineResourceHandler extends ResourceHandlerBase {
private resourceEndpoints;
/**
* Helper function to convert entityTypeId (number) to entityType (string)
*/
private getEntityTypeFromId;
/**
* Prepare filter parameters for timeline API calls, converting ENTITY_TYPE_ID to ENTITY_TYPE when needed
*/
private prepareTimelineFilter;
/**
* Handle API errors for timeline operations
*/
private handleTimelineError;
/**
* Try alternative approaches to get timeline data when the primary method fails
*/
private tryAlternativeTimelineApproach;
/**
* Process all timeline operations
*/
process(): Promise<INodeExecutionData[]>;
/**
* Handles retrieving comments from a timeline
*/
private handleGetComments;
/**
* Handle pagination for Timeline list operations
*/
private handleTimelineListWithPagination;
/**
* Handles adding a comment to an entity
*/
private handleAddComment;
/**
* Handles updating a comment
*/
private handleUpdateComment;
/**
* Handles deleting a comment
*/
private handleDeleteComment;
/**
* Handles binding an entity to another entity's timeline
*/
private handleBind;
/**
* Handles unbinding an entity from another entity's timeline
*/
private handleUnbind;
/**
* Handles getting bindings for an entity
*/
private handleGetBindings;
/**
* Handles getting a specific comment
*/
private handleGetComment;
/**
* Handles getting comment fields
*/
private handleGetCommentFields;
/**
* Handles getting a note
*/
private handleGetNote;
/**
* Handles saving a note
*/
private handleSaveNote;
/**
* Handles deleting a note
*/
private handleDeleteNote;
/**
* Handles getting binding fields
*/
private handleGetBindingsFields;
/**
* Handles setting layout blocks
*/
private handleSetLayoutBlocks;
/**
* Handles getting layout blocks
*/
private handleGetLayoutBlocks;
/**
* Handles deleting layout blocks
*/
private handleDeleteLayoutBlocks;
/**
* Handles adding a log message
*/
private handleAddLogMessage;
/**
* Handles getting a log message
*/
private handleGetLogMessage;
/**
* Handles getting log messages
*/
private handleGetLogMessages;
/**
* Handles deleting a log message
*/
private handleDeleteLogMessage;
}