mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Give access to getBinaryDataBuffer in preSend method (#3588)
This commit is contained in:
@@ -73,6 +73,7 @@ export interface IExecuteFunctions extends IExecuteFunctionsBase {
|
|||||||
|
|
||||||
export interface IExecuteSingleFunctions extends IExecuteSingleFunctionsBase {
|
export interface IExecuteSingleFunctions extends IExecuteSingleFunctionsBase {
|
||||||
helpers: {
|
helpers: {
|
||||||
|
getBinaryDataBuffer(propertyName: string, inputIndex?: number): Promise<Buffer>;
|
||||||
httpRequest(requestOptions: IHttpRequestOptions): Promise<any>; // tslint:disable-line:no-any
|
httpRequest(requestOptions: IHttpRequestOptions): Promise<any>; // tslint:disable-line:no-any
|
||||||
prepareBinaryData(
|
prepareBinaryData(
|
||||||
binaryData: Buffer,
|
binaryData: Buffer,
|
||||||
|
|||||||
@@ -2385,6 +2385,9 @@ export function getExecuteSingleFunctions(
|
|||||||
return workflow.getStaticData(type, node);
|
return workflow.getStaticData(type, node);
|
||||||
},
|
},
|
||||||
helpers: {
|
helpers: {
|
||||||
|
async getBinaryDataBuffer(propertyName: string, inputIndex = 0): Promise<Buffer> {
|
||||||
|
return getBinaryDataBuffer.call(this, inputData, itemIndex, propertyName, inputIndex);
|
||||||
|
},
|
||||||
httpRequest,
|
httpRequest,
|
||||||
async requestWithAuthentication(
|
async requestWithAuthentication(
|
||||||
this: IAllExecuteFunctions,
|
this: IAllExecuteFunctions,
|
||||||
|
|||||||
Reference in New Issue
Block a user