n8n
Version:
n8n Workflow Automation Tool
33 lines (32 loc) • 1.24 kB
TypeScript
import { IConnections, IDataObject, IWorkflowSettings, WorkflowFEMeta } from 'n8n-workflow';
import type { IBinaryKeyData, INode, IPairedItemData } from 'n8n-workflow';
import type { TagEntity } from './TagEntity';
import type { SharedWorkflow } from './SharedWorkflow';
import type { WorkflowStatistics } from './WorkflowStatistics';
import type { WorkflowTagMapping } from './WorkflowTagMapping';
import { WithTimestampsAndStringId } from './AbstractEntity';
import type { IWorkflowDb } from '../../Interfaces';
export declare class WorkflowEntity extends WithTimestampsAndStringId implements IWorkflowDb {
name: string;
active: boolean;
nodes: INode[];
connections: IConnections;
settings?: IWorkflowSettings;
staticData?: IDataObject;
meta?: WorkflowFEMeta;
tags?: TagEntity[];
tagMappings: WorkflowTagMapping[];
shared: SharedWorkflow[];
statistics: WorkflowStatistics[];
pinData: ISimplifiedPinData;
versionId: string;
triggerCount: number;
display(): string;
}
export interface ISimplifiedPinData {
[nodeName: string]: Array<{
json: IDataObject;
binary?: IBinaryKeyData;
pairedItem?: IPairedItemData | IPairedItemData[] | number;
}>;
}