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,12 +1,13 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type {
IHookFunctions,
IWebhookFunctions,
IDataObject,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
INodeTypeBaseDescription,
import {
type IHookFunctions,
type IWebhookFunctions,
type IDataObject,
type INodeType,
type INodeTypeDescription,
type IWebhookResponseData,
type INodeTypeBaseDescription,
NodeConnectionType,
} from 'n8n-workflow';
import { getSites, webflowApiRequest } from '../GenericFunctions';
@@ -28,7 +29,7 @@ export class WebflowTriggerV1 implements INodeType {
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
inputs: [],
outputs: ['main'],
outputs: [NodeConnectionType.Main],
credentials: [
{
name: 'webflowApi',

View File

@@ -1,10 +1,11 @@
import type {
IExecuteFunctions,
IDataObject,
INodeTypeBaseDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
import {
type IExecuteFunctions,
type IDataObject,
type INodeTypeBaseDescription,
type INodeExecutionData,
type INodeType,
type INodeTypeDescription,
NodeConnectionType,
} from 'n8n-workflow';
import {
@@ -29,8 +30,8 @@ export class WebflowV1 implements INodeType {
defaults: {
name: 'Webflow',
},
inputs: ['main'],
outputs: ['main'],
inputs: [NodeConnectionType.Main],
outputs: [NodeConnectionType.Main],
credentials: [
{
name: 'webflowApi',

View File

@@ -8,6 +8,7 @@ import type {
IWebhookFunctions,
IWebhookResponseData,
} from 'n8n-workflow';
import { NodeConnectionType } from 'n8n-workflow';
import { getSites, webflowApiRequest } from '../GenericFunctions';
@@ -28,7 +29,7 @@ export class WebflowTriggerV2 implements INodeType {
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
inputs: [],
outputs: ['main'],
outputs: [NodeConnectionType.Main],
credentials: [
{
name: 'webflowOAuth2Api',

View File

@@ -1,5 +1,5 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { INodeTypeDescription } from 'n8n-workflow';
import { NodeConnectionType, type INodeTypeDescription } from 'n8n-workflow';
import * as item from './Item/Item.resource';
@@ -14,8 +14,8 @@ export const versionDescription: INodeTypeDescription = {
defaults: {
name: 'Webflow',
},
inputs: ['main'],
outputs: ['main'],
inputs: [NodeConnectionType.Main],
outputs: [NodeConnectionType.Main],
credentials: [
{
name: 'webflowOAuth2Api',