diff --git a/packages/core/src/Interfaces.ts b/packages/core/src/Interfaces.ts index 70f6c7063e..1e0ad62bbe 100644 --- a/packages/core/src/Interfaces.ts +++ b/packages/core/src/Interfaces.ts @@ -73,6 +73,7 @@ export interface IExecuteFunctions extends IExecuteFunctionsBase { export interface IExecuteSingleFunctions extends IExecuteSingleFunctionsBase { helpers: { + getBinaryDataBuffer(propertyName: string, inputIndex?: number): Promise; httpRequest(requestOptions: IHttpRequestOptions): Promise; // tslint:disable-line:no-any prepareBinaryData( binaryData: Buffer, diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 8542a8815d..b5aeeb75c1 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -2385,6 +2385,9 @@ export function getExecuteSingleFunctions( return workflow.getStaticData(type, node); }, helpers: { + async getBinaryDataBuffer(propertyName: string, inputIndex = 0): Promise { + return getBinaryDataBuffer.call(this, inputData, itemIndex, propertyName, inputIndex); + }, httpRequest, async requestWithAuthentication( this: IAllExecuteFunctions,