n8n-workflow
Advanced tools
Comparing version 0.48.0 to 0.49.0
@@ -61,2 +61,10 @@ import { Workflow } from './Workflow'; | ||
} | ||
export interface ICredentialsExpressionResolveValues { | ||
connectionInputData: INodeExecutionData[]; | ||
itemIndex: number; | ||
node: INode; | ||
runExecutionData: IRunExecutionData | null; | ||
runIndex: number; | ||
workflow: Workflow; | ||
} | ||
export declare abstract class ICredentialsHelper { | ||
@@ -67,3 +75,3 @@ encryptionKey: string; | ||
abstract getCredentials(name: string, type: string): ICredentials; | ||
abstract getDecrypted(name: string, type: string): ICredentialDataDecryptedObject; | ||
abstract getDecrypted(name: string, type: string, raw?: boolean, expressionResolveValues?: ICredentialsExpressionResolveValues): ICredentialDataDecryptedObject; | ||
abstract updateCredentials(name: string, type: string, data: ICredentialDataDecryptedObject): Promise<void>; | ||
@@ -142,3 +150,3 @@ } | ||
getContext(type: string): IContextObject; | ||
getCredentials(type: string): ICredentialDataDecryptedObject | undefined; | ||
getCredentials(type: string, itemIndex?: number): ICredentialDataDecryptedObject | undefined; | ||
getInputData(inputIndex?: number, inputName?: string): INodeExecutionData[]; | ||
@@ -243,2 +251,3 @@ getMode(): WorkflowExecuteMode; | ||
getNodeWebhookUrl: (name: string) => string | undefined; | ||
getParamsData(): object; | ||
getQueryData(): object; | ||
@@ -450,2 +459,3 @@ getRequestObject(): express.Request; | ||
workflowExecuteAdditionalData: IWorkflowExecuteAdditionalData; | ||
webhookId?: string; | ||
} | ||
@@ -452,0 +462,0 @@ export interface IWebhookDescription { |
@@ -560,2 +560,6 @@ "use strict"; | ||
} | ||
let webhookId; | ||
if ((path.startsWith(':') || path.includes('/:')) && node.webhookId) { | ||
webhookId = node.webhookId; | ||
} | ||
returnData.push({ | ||
@@ -568,2 +572,3 @@ httpMethod: httpMethod.toString(), | ||
workflowExecuteAdditionalData: additionalData, | ||
webhookId, | ||
}); | ||
@@ -627,2 +632,8 @@ } | ||
function getNodeWebhookUrl(baseUrl, workflowId, node, path, isFullPath) { | ||
if ((path.startsWith(':') || path.includes('/:')) && node.webhookId) { | ||
isFullPath = false; | ||
} | ||
if (path.startsWith('/')) { | ||
path = path.slice(1); | ||
} | ||
return `${baseUrl}/${getNodeWebhookPath(workflowId, node, path, isFullPath)}`; | ||
@@ -629,0 +640,0 @@ } |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.48.0", | ||
"version": "0.49.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
422287
6712