refactor: Delete unnecessary interface re-exports from core, and delete unused code in nodes-base (no-changelog) (#6631)
This commit is contained in:
committed by
GitHub
parent
329d22f5d1
commit
e57e85edf7
@@ -1,5 +1,9 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IDataObject, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { processJsonInput, updateDisplayOptions } from '@utils/utilities';
|
||||
import type { ExcelResponse } from '../../helpers/interfaces';
|
||||
import { prepareOutput } from '../../helpers/utils';
|
||||
@@ -220,7 +224,11 @@ export async function execute(
|
||||
const dataProperty = this.getNodeParameter('options.dataProperty', 0, 'data') as string;
|
||||
|
||||
returnData.push(
|
||||
...prepareOutput(this.getNode(), responseData, { columnsRow, dataProperty, rawData }),
|
||||
...prepareOutput.call(this, this.getNode(), responseData, {
|
||||
columnsRow,
|
||||
dataProperty,
|
||||
rawData,
|
||||
}),
|
||||
);
|
||||
|
||||
return returnData;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeExecutionData, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { workbookRLC, worksheetRLC } from '../common.descriptions';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeExecutionData, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { workbookRLC, worksheetRLC } from '../common.descriptions';
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IDataObject, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest, microsoftApiRequestAllItems } from '../../transport';
|
||||
import { workbookRLC } from '../common.descriptions';
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IDataObject, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import type { ExcelResponse } from '../../helpers/interfaces';
|
||||
import { prepareOutput } from '../../helpers/utils';
|
||||
@@ -167,7 +171,7 @@ export async function execute(
|
||||
const firstDataRow = this.getNodeParameter('dataStartRow', i, 1) as number;
|
||||
|
||||
returnData.push(
|
||||
...prepareOutput(this.getNode(), responseData as ExcelResponse, {
|
||||
...prepareOutput.call(this, this.getNode(), responseData as ExcelResponse, {
|
||||
rawData,
|
||||
keyRow,
|
||||
firstDataRow,
|
||||
@@ -176,7 +180,7 @@ export async function execute(
|
||||
} else {
|
||||
const dataProperty = (options.dataProperty as string) || 'data';
|
||||
returnData.push(
|
||||
...prepareOutput(this.getNode(), responseData as ExcelResponse, {
|
||||
...prepareOutput.call(this, this.getNode(), responseData as ExcelResponse, {
|
||||
rawData,
|
||||
dataProperty,
|
||||
}),
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IDataObject, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import { processJsonInput, updateDisplayOptions } from '@utils/utilities';
|
||||
import type { ExcelResponse, UpdateSummary } from '../../helpers/interfaces';
|
||||
@@ -295,7 +299,7 @@ export async function execute(
|
||||
);
|
||||
|
||||
returnData.push(
|
||||
...prepareOutput(this.getNode(), responseData as ExcelResponse, {
|
||||
...prepareOutput.call(this, this.getNode(), responseData as ExcelResponse, {
|
||||
rawData,
|
||||
dataProperty,
|
||||
}),
|
||||
@@ -353,7 +357,7 @@ export async function execute(
|
||||
const { updatedRows } = updateSummary;
|
||||
|
||||
returnData.push(
|
||||
...prepareOutput(this.getNode(), responseData as ExcelResponse, {
|
||||
...prepareOutput.call(this, this.getNode(), responseData as ExcelResponse, {
|
||||
updatedRows,
|
||||
rawData,
|
||||
dataProperty,
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IDataObject, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import { processJsonInput, updateDisplayOptions } from '@utils/utilities';
|
||||
import type { ExcelResponse, UpdateSummary } from '../../helpers/interfaces';
|
||||
@@ -311,7 +315,7 @@ export async function execute(
|
||||
const dataProperty = this.getNodeParameter('options.dataProperty', 0, 'data') as string;
|
||||
|
||||
returnData.push(
|
||||
...prepareOutput(this.getNode(), responseData as ExcelResponse, {
|
||||
...prepareOutput.call(this, this.getNode(), responseData as ExcelResponse, {
|
||||
updatedRows,
|
||||
rawData,
|
||||
dataProperty,
|
||||
|
||||
Reference in New Issue
Block a user