refactor: Use NodeConnectionType consistently across the code base (no-changelog) (#10595)

This commit is contained in:
Ricardo Espinoza
2024-08-29 09:55:53 -04:00
committed by GitHub
parent 1491cbd228
commit c4eb3746d7
521 changed files with 2259 additions and 1999 deletions

View File

@@ -6,14 +6,12 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError, jsonParse } from 'n8n-workflow';
import type { FormField, FormTriggerData, FormTriggerInput } from './interfaces';
import { FORM_TRIGGER_AUTHENTICATION_PROPERTY } from './interfaces';
import { WebhookAuthorizationError } from '../Webhook/error';
import { validateWebhookAuthentication } from '../Webhook/utils';
import { DateTime } from 'luxon';
import isbot from 'isbot';
import { WebhookAuthorizationError } from '../Webhook/error';
import { validateWebhookAuthentication } from '../Webhook/utils';
import type { FormField, FormTriggerData, FormTriggerInput } from './interfaces';
import { FORM_TRIGGER_AUTHENTICATION_PROPERTY } from './interfaces';
export function prepareFormData({
formTitle,

View File

@@ -1,6 +1,7 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import {
FORM_TRIGGER_PATH_IDENTIFIER,
NodeConnectionType,
type INodeType,
type INodeTypeBaseDescription,
type INodeTypeDescription,
@@ -29,7 +30,7 @@ const descriptionV1: INodeTypeDescription = {
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
inputs: [],
outputs: ['main'],
outputs: [NodeConnectionType.Main],
webhooks: [
{
name: 'setup',

View File

@@ -1,10 +1,11 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type {
INodeProperties,
INodeType,
INodeTypeBaseDescription,
INodeTypeDescription,
IWebhookFunctions,
import {
NodeConnectionType,
type INodeProperties,
type INodeType,
type INodeTypeBaseDescription,
type INodeTypeDescription,
type IWebhookFunctions,
} from 'n8n-workflow';
import { formWebhook } from '../utils';
@@ -39,7 +40,7 @@ const descriptionV2: INodeTypeDescription = {
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
inputs: [],
outputs: ['main'],
outputs: [NodeConnectionType.Main],
webhooks: [
{
name: 'setup',