refactor: Migrate NodeConnectionType to const object type (no-changelog) (#14078)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Alex Grozav
2025-03-21 14:01:26 +02:00
committed by GitHub
parent 7e8179b848
commit 8215e0b59f
703 changed files with 3104 additions and 3018 deletions

View File

@@ -44,7 +44,7 @@ import type {
import {
LoggerProxy as Logger,
NodeHelpers,
NodeConnectionType,
NodeConnectionTypes,
ApplicationError,
sleep,
ExecutionCancelledError,
@@ -786,7 +786,7 @@ export class WorkflowExecute {
// would mean that it has to get added to the list of nodes to process.
const parentNodes = workflow.getParentNodes(
inputData.node,
NodeConnectionType.Main,
NodeConnectionTypes.Main,
-1,
);
let nodeToAdd: string | undefined = inputData.node;
@@ -889,7 +889,7 @@ export class WorkflowExecute {
'waitingExecution',
connectionData.node,
waitingNodeIndex!,
NodeConnectionType.Main,
NodeConnectionTypes.Main,
],
null,
);
@@ -2219,7 +2219,7 @@ export class WorkflowExecute {
);
const outputs = NodeHelpers.getNodeOutputs(workflow, executionData.node, nodeType.description);
const outputTypes = NodeHelpers.getConnectionTypes(outputs);
const mainOutputTypes = outputTypes.filter((output) => output === NodeConnectionType.Main);
const mainOutputTypes = outputTypes.filter((output) => output === NodeConnectionTypes.Main);
const errorItems: INodeExecutionData[] = [];
const closeFunctions: CloseFunction[] = [];
@@ -2276,7 +2276,7 @@ export class WorkflowExecute {
} else {
const pairedItemInputIndex = pairedItemData.input || 0;
const sourceData = executionData.source[NodeConnectionType.Main][pairedItemInputIndex];
const sourceData = executionData.source[NodeConnectionTypes.Main][pairedItemInputIndex];
const constPairedItem = dataProxy.$getPairedItem(
sourceData!.previousNode,