refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)

* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c.

* 👕 Fix severity
This commit is contained in:
Iván Ovejero
2023-01-27 12:22:44 +01:00
committed by GitHub
parent 845f0f9d20
commit b03e358a12
1840 changed files with 3829 additions and 3516 deletions

View File

@@ -1,4 +1,5 @@
import { INodeTypeBaseDescription, IVersionedNodeType, VersionedNodeType } from 'n8n-workflow';
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
import { VersionedNodeType } from 'n8n-workflow';
import { SyncroMspV1 } from './v1/SyncroMspV1.node';

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
ICredentialDataDecryptedObject,
ICredentialsDecrypted,
ICredentialTestFunctions,

View File

@@ -1,4 +1,4 @@
import { AllEntities, Entity, PropertiesOf } from 'n8n-workflow';
import type { AllEntities, Entity, PropertiesOf } from 'n8n-workflow';
type SyncroMspMap = {
contact: 'create' | 'delete' | 'get' | 'getAll' | 'update';

View File

@@ -1,4 +1,4 @@
import { ContactProperties } from '../../Interfaces';
import type { ContactProperties } from '../../Interfaces';
import { addressFixedCollection } from '../../../methods/sharedFields';

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { ContactProperties } from '../../Interfaces';
import type { ContactProperties } from '../../Interfaces';
export const contactDeleteDescription: ContactProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { ContactProperties } from '../../Interfaces';
import type { ContactProperties } from '../../Interfaces';
export const contactGetDescription: ContactProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { ContactProperties } from '../../Interfaces';
import type { ContactProperties } from '../../Interfaces';
export const contactGetAllDescription: ContactProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest, apiRequestAllItems } from '../../../transport';

View File

@@ -4,7 +4,7 @@ import * as get from './get';
import * as update from './update';
import * as del from './del';
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export { getAll, create, del as delete, update, get };

View File

@@ -1,4 +1,4 @@
import { ContactProperties } from '../../Interfaces';
import type { ContactProperties } from '../../Interfaces';
import { addressFixedCollection } from '../../../methods/sharedFields';

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { CustomerProperties } from '../../Interfaces';
import type { CustomerProperties } from '../../Interfaces';
import { addressFixedCollection } from '../../../methods/sharedFields';

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { CustomerProperties } from '../../Interfaces';
import type { CustomerProperties } from '../../Interfaces';
export const customerDeleteDescription: CustomerProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { CustomerProperties } from '../../Interfaces';
import type { CustomerProperties } from '../../Interfaces';
export const customerGetDescription: CustomerProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { CustomerProperties } from '../../Interfaces';
import type { CustomerProperties } from '../../Interfaces';
export const customerGetAllDescription: CustomerProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest, apiRequestAllItems } from '../../../transport';

View File

@@ -4,7 +4,7 @@ import * as del from './del';
import * as update from './update';
import * as get from './get';
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export { getAll, create, del as delete, update, get };

View File

@@ -1,4 +1,4 @@
import { CustomerProperties } from '../../Interfaces';
import type { CustomerProperties } from '../../Interfaces';
import { addressFixedCollection } from '../../../methods/sharedFields';

View File

@@ -1,6 +1,7 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData, NodeApiError } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { RmmProperties } from '../../Interfaces';
import type { RmmProperties } from '../../Interfaces';
export const rmmCreateDescription: RmmProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { RmmProperties } from '../../Interfaces';
import type { RmmProperties } from '../../Interfaces';
export const rmmDeleteDescription: RmmProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { RmmProperties } from '../../Interfaces';
import type { RmmProperties } from '../../Interfaces';
export const rmmGetDescription: RmmProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { RmmProperties } from '../../Interfaces';
import type { RmmProperties } from '../../Interfaces';
export const rmmGetAllDescription: RmmProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest, apiRequestAllItems } from '../../../transport';

View File

@@ -4,7 +4,7 @@ import * as create from './create';
import * as del from './del';
import * as mute from './mute';
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export { getAll, get, mute, del as delete, create };

View File

@@ -1,4 +1,4 @@
import { RmmProperties } from '../../Interfaces';
import type { RmmProperties } from '../../Interfaces';
export const rmmMuteDescription: RmmProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,13 +1,14 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { INodeExecutionData, NodeApiError } from 'n8n-workflow';
import type { INodeExecutionData } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import * as customer from './customer';
import * as ticket from './ticket';
import * as contact from './contact';
import * as rmm from './rmm';
import { SyncroMsp } from './Interfaces';
import type { SyncroMsp } from './Interfaces';
export async function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();

View File

@@ -1,4 +1,4 @@
import { TicketProperties } from '../../Interfaces';
import type { TicketProperties } from '../../Interfaces';
export const ticketCreateDescription: TicketProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { TicketProperties } from '../../Interfaces';
import type { TicketProperties } from '../../Interfaces';
export const ticketDeleteDescription: TicketProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { TicketProperties } from '../../Interfaces';
import type { TicketProperties } from '../../Interfaces';
export const ticketGetDescription: TicketProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,4 +1,4 @@
import { TicketProperties } from '../../Interfaces';
import type { TicketProperties } from '../../Interfaces';
export const ticketGetAllDescription: TicketProperties = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest, apiRequestAllItems } from '../../../transport';

View File

@@ -4,7 +4,7 @@ import * as get from './get';
import * as del from './del';
import * as update from './update';
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export { getAll, create, get, del as delete, update };

View File

@@ -1,4 +1,4 @@
import { TicketProperties } from '../../Interfaces';
import type { TicketProperties } from '../../Interfaces';
export const ticketUpdateDescription: TicketProperties = [
{

View File

@@ -1,6 +1,7 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData, NodeOperationError } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { apiRequest } from '../../../transport';

View File

@@ -1,5 +1,5 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import { INodeTypeDescription } from 'n8n-workflow';
import type { INodeTypeDescription } from 'n8n-workflow';
import * as customer from './customer';
import * as ticket from './ticket';

View File

@@ -1,4 +1,5 @@
import { ILoadOptionsFunctions, INodePropertyOptions, NodeOperationError } from 'n8n-workflow';
import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { apiRequestAllItems } from '../transport';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const addressFixedCollection: INodeProperties = {
displayName: 'Address',

View File

@@ -1,13 +1,13 @@
import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import {
import type {
GenericValue,
ICredentialDataDecryptedObject,
ICredentialTestFunctions,
IDataObject,
IHttpRequestOptions,
NodeApiError,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
/**
* Make an API request to Mattermost