feat: Add more AI node info to telemetry (#8827)

This commit is contained in:
Michael Kret
2024-03-07 12:46:07 +02:00
committed by GitHub
parent 0f7ae3f50a
commit ed6dc86d60
7 changed files with 128 additions and 34 deletions

View File

@@ -28,6 +28,7 @@ import { augmentArray, augmentObject } from './AugmentObject';
import { deepCopy } from './utils';
import { getGlobalState } from './GlobalState';
import { ApplicationError } from './errors/application.error';
import { SCRIPTING_NODE_TYPES } from './Constants';
export function isResourceLocatorValue(value: unknown): value is INodeParameterResourceLocator {
return Boolean(
@@ -35,12 +36,6 @@ export function isResourceLocatorValue(value: unknown): value is INodeParameterR
);
}
const SCRIPTING_NODE_TYPES = [
'n8n-nodes-base.function',
'n8n-nodes-base.functionItem',
'n8n-nodes-base.code',
];
const isScriptingNode = (nodeName: string, workflow: Workflow) => {
const node = workflow.getNode(nodeName);