n8n-nodes-late
Version:
n8n community node for LATE API - Schedule and manage social media posts across Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, and Threads
32 lines • 1.1 kB
TypeScript
import type { ILoadOptionsFunctions, INodePropertyOptions } from "n8n-workflow";
export interface PlatformAccount {
_id: string;
platform: string;
username?: string;
displayName?: string;
}
export interface PlatformConfig {
name: string;
value: string;
displayName: string;
usernamePrefix?: string;
}
export declare const SUPPORTED_PLATFORMS: PlatformConfig[];
/**
* Generic function to load accounts for any platform
*/
export declare function loadPlatformAccounts(context: ILoadOptionsFunctions, platform: string): Promise<INodePropertyOptions[]>;
/**
* Builds the platform mapping expression for create/update operations
* Fixed: Use proper n8n expression syntax that evaluates correctly
*/
export declare function buildPlatformMappingExpression(): string;
/**
* Processes media items to ensure proper variable evaluation
*/
export declare function processMediaItems(mediaItems: any): any[];
/**
* Processes tags string into array
*/
export declare function processTags(tagsString: string | undefined): string[];
//# sourceMappingURL=platformHelpers.d.ts.map