mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(Code Node): Constently handle various kinds of data returned by user code (#6002)
This commit is contained in:
committed by
GitHub
parent
fe058aa8ee
commit
f9b3aeac44
@@ -1462,21 +1462,30 @@ export interface IWebhookDescription {
|
||||
restartWebhook?: boolean;
|
||||
}
|
||||
|
||||
export interface ProxyInput {
|
||||
all: () => INodeExecutionData[];
|
||||
context: any;
|
||||
first: () => INodeExecutionData | undefined;
|
||||
item: INodeExecutionData | undefined;
|
||||
last: () => INodeExecutionData | undefined;
|
||||
params?: INodeParameters;
|
||||
}
|
||||
|
||||
export interface IWorkflowDataProxyData {
|
||||
[key: string]: any;
|
||||
$binary: any;
|
||||
$binary: INodeExecutionData['binary'];
|
||||
$data: any;
|
||||
$env: any;
|
||||
$evaluateExpression: any;
|
||||
$item: any;
|
||||
$items: any;
|
||||
$json: any;
|
||||
$evaluateExpression: (expression: string, itemIndex?: number) => NodeParameterValueType;
|
||||
$item: (itemIndex: number, runIndex?: number) => IWorkflowDataProxyData;
|
||||
$items: (nodeName?: string, outputIndex?: number, runIndex?: number) => INodeExecutionData[];
|
||||
$json: INodeExecutionData['json'];
|
||||
$node: any;
|
||||
$parameter: any;
|
||||
$position: any;
|
||||
$parameter: INodeParameters;
|
||||
$position: number;
|
||||
$workflow: any;
|
||||
$: any;
|
||||
$input: any;
|
||||
$input: ProxyInput;
|
||||
$thisItem: any;
|
||||
$thisRunIndex: number;
|
||||
$thisItemIndex: number;
|
||||
|
||||
Reference in New Issue
Block a user