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

@@ -1,14 +1,15 @@
/* eslint-disable @typescript-eslint/dot-notation */
import type {
IDataObject,
IExecuteFunctions,
IHttpRequestMethods,
ILoadOptionsFunctions,
INodeExecutionData,
INodeParameters,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
import {
NodeConnectionType,
type IDataObject,
type IExecuteFunctions,
type IHttpRequestMethods,
type ILoadOptionsFunctions,
type INodeExecutionData,
type INodeParameters,
type INodePropertyOptions,
type INodeType,
type INodeTypeDescription,
} from 'n8n-workflow';
import set from 'lodash/set';
@@ -48,8 +49,8 @@ export class TheHive implements INodeType {
defaults: {
name: 'TheHive',
},
inputs: ['main'],
outputs: ['main'],
inputs: [NodeConnectionType.Main],
outputs: [NodeConnectionType.Main],
credentials: [
{
name: 'theHiveApi',

View File

@@ -1,10 +1,11 @@
import type {
IWebhookFunctions,
IDataObject,
IHookFunctions,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
import {
type IWebhookFunctions,
type IDataObject,
type IHookFunctions,
type INodeType,
type INodeTypeDescription,
type IWebhookResponseData,
NodeConnectionType,
} from 'n8n-workflow';
import { eventsDescription } from './descriptions/EventsDescription';
@@ -20,7 +21,7 @@ export class TheHiveTrigger implements INodeType {
name: 'TheHive Trigger',
},
inputs: [],
outputs: ['main'],
outputs: [NodeConnectionType.Main],
webhooks: [
{
name: 'default',