From c6acb6211217f27d04decfd96be1a3057bbc2426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Mon, 30 Sep 2024 15:31:01 +0200 Subject: [PATCH] update input/output types --- .../nodes/SeaTable/SeaTableTrigger.node.ts | 20 +++++++++---------- .../nodes/SeaTable/v1/SeaTable.node.ts | 6 +++--- .../nodes/SeaTable/v1/VersionDescription.ts | 6 +++--- .../SeaTable/v2/actions/SeaTable.node.ts | 6 +++--- .../SeaTable/v2/actions/versionDescription.ts | 6 +++--- 5 files changed, 21 insertions(+), 23 deletions(-) diff --git a/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts b/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts index d01b76201b..534a117eb4 100644 --- a/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts +++ b/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts @@ -1,13 +1,11 @@ -import type { - IPollFunctions, - INodeExecutionData, - INodeType, - INodeTypeDescription, -} from 'n8n-workflow'; - import moment from 'moment-timezone'; - -import { seaTableApiRequest, simplify_new, enrichColumns } from './v2/GenericFunctions'; +import { + type IPollFunctions, + type INodeExecutionData, + type INodeType, + type INodeTypeDescription, + NodeConnectionType, +} from 'n8n-workflow'; import type { ICtx, @@ -20,7 +18,7 @@ import type { ICollaboratorsResult, IColumnDigitalSignature, } from './v2/actions/Interfaces'; - +import { seaTableApiRequest, simplify_new, enrichColumns } from './v2/GenericFunctions'; import { loadOptions } from './v2/methods'; export class SeaTableTrigger implements INodeType { @@ -43,7 +41,7 @@ export class SeaTableTrigger implements INodeType { ], polling: true, inputs: [], - outputs: ['main'], + outputs: [NodeConnectionType.Main], properties: [ { displayName: 'Event', diff --git a/packages/nodes-base/nodes/SeaTable/v1/SeaTable.node.ts b/packages/nodes-base/nodes/SeaTable/v1/SeaTable.node.ts index 554cd349d4..f334c23cf7 100644 --- a/packages/nodes-base/nodes/SeaTable/v1/SeaTable.node.ts +++ b/packages/nodes-base/nodes/SeaTable/v1/SeaTable.node.ts @@ -1,4 +1,4 @@ -import type { INodeTypeDescription } from 'n8n-workflow'; +import { NodeConnectionType, type INodeTypeDescription } from 'n8n-workflow'; import { rowFields, rowOperations } from './RowDescription'; export const versionDescription: INodeTypeDescription = { @@ -12,8 +12,8 @@ export const versionDescription: INodeTypeDescription = { defaults: { name: 'SeaTable', }, - inputs: ['main'], - outputs: ['main'], + inputs: [NodeConnectionType.Main], + outputs: [NodeConnectionType.Main], credentials: [ { name: 'seaTableApi', diff --git a/packages/nodes-base/nodes/SeaTable/v1/VersionDescription.ts b/packages/nodes-base/nodes/SeaTable/v1/VersionDescription.ts index c5c4c38813..833c3a44a9 100644 --- a/packages/nodes-base/nodes/SeaTable/v1/VersionDescription.ts +++ b/packages/nodes-base/nodes/SeaTable/v1/VersionDescription.ts @@ -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 { rowFields, rowOperations } from './RowDescription'; export const versionDescription: INodeTypeDescription = { @@ -13,8 +13,8 @@ export const versionDescription: INodeTypeDescription = { defaults: { name: 'SeaTable', }, - inputs: ['main'], - outputs: ['main'], + inputs: [NodeConnectionType.Main], + outputs: [NodeConnectionType.Main], credentials: [ { name: 'seaTableApi', diff --git a/packages/nodes-base/nodes/SeaTable/v2/actions/SeaTable.node.ts b/packages/nodes-base/nodes/SeaTable/v2/actions/SeaTable.node.ts index 7a7b4a33c5..01c23f3f5a 100644 --- a/packages/nodes-base/nodes/SeaTable/v2/actions/SeaTable.node.ts +++ b/packages/nodes-base/nodes/SeaTable/v2/actions/SeaTable.node.ts @@ -1,4 +1,4 @@ -import type { INodeTypeDescription } from 'n8n-workflow'; +import { NodeConnectionType, type INodeTypeDescription } from 'n8n-workflow'; import * as row from './row'; import * as base from './base'; import * as link from './link'; @@ -15,8 +15,8 @@ export const versionDescription: INodeTypeDescription = { defaults: { name: 'SeaTable', }, - inputs: ['main'], - outputs: ['main'], + inputs: [NodeConnectionType.Main], + outputs: [NodeConnectionType.Main], credentials: [ { name: 'seaTableApi', diff --git a/packages/nodes-base/nodes/SeaTable/v2/actions/versionDescription.ts b/packages/nodes-base/nodes/SeaTable/v2/actions/versionDescription.ts index 2393d0c6b1..66b470f2da 100644 --- a/packages/nodes-base/nodes/SeaTable/v2/actions/versionDescription.ts +++ b/packages/nodes-base/nodes/SeaTable/v2/actions/versionDescription.ts @@ -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 row from './row'; import * as base from './base'; import * as link from './link'; @@ -16,8 +16,8 @@ export const versionDescription: INodeTypeDescription = { defaults: { name: 'SeaTable', }, - inputs: ['main'], - outputs: ['main'], + inputs: [NodeConnectionType.Main], + outputs: [NodeConnectionType.Main], credentials: [ { name: 'seaTableApi',