refactor(core): Move more code out of NodeExecutionFunctions, and add unit tests (no-changelog) (#13131)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-02-07 17:35:51 +01:00
committed by GitHub
parent ccdca6b39f
commit 4577ce0846
26 changed files with 2254 additions and 1688 deletions

View File

@@ -398,26 +398,6 @@ export interface INodeTypeNameVersion {
version: number;
}
export interface IGetExecutePollFunctions {
(
workflow: Workflow,
node: INode,
additionalData: IWorkflowExecuteAdditionalData,
mode: WorkflowExecuteMode,
activation: WorkflowActivateMode,
): IPollFunctions;
}
export interface IGetExecuteTriggerFunctions {
(
workflow: Workflow,
node: INode,
additionalData: IWorkflowExecuteAdditionalData,
mode: WorkflowExecuteMode,
activation: WorkflowActivateMode,
): ITriggerFunctions;
}
export interface IRunNodeResponse {
data: INodeExecutionData[][] | NodeExecutionOutput | null | undefined;
closeFunction?: CloseFunction;
@@ -759,7 +739,7 @@ export interface DeduplicationHelperFunctions {
options: ICheckProcessedOptions,
): Promise<number>;
}
export interface NodeHelperFunctions {
interface NodeHelperFunctions {
copyBinaryFile(filePath: string, fileName: string, mimeType?: string): Promise<IBinaryData>;
}
@@ -1196,11 +1176,6 @@ export interface INodeExecutionData {
index?: number;
}
export interface INodeExecuteFunctions {
getExecutePollFunctions: IGetExecutePollFunctions;
getExecuteTriggerFunctions: IGetExecuteTriggerFunctions;
}
export type NodeParameterValue = string | number | boolean | undefined | null;
export type ResourceLocatorModes = 'id' | 'url' | 'list' | string;