mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -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';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialsDecrypted,
|
||||
ICredentialTestFunctions,
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactProperties } from '../../Interfaces';
|
||||
import type { ContactProperties } from '../../Interfaces';
|
||||
|
||||
import { addressFixedCollection } from '../../../methods/sharedFields';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactProperties } from '../../Interfaces';
|
||||
import type { ContactProperties } from '../../Interfaces';
|
||||
|
||||
export const contactDeleteDescription: ContactProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactProperties } from '../../Interfaces';
|
||||
import type { ContactProperties } from '../../Interfaces';
|
||||
|
||||
export const contactGetDescription: ContactProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactProperties } from '../../Interfaces';
|
||||
import type { ContactProperties } from '../../Interfaces';
|
||||
|
||||
export const contactGetAllDescription: ContactProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactProperties } from '../../Interfaces';
|
||||
import type { ContactProperties } from '../../Interfaces';
|
||||
|
||||
import { addressFixedCollection } from '../../../methods/sharedFields';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CustomerProperties } from '../../Interfaces';
|
||||
import type { CustomerProperties } from '../../Interfaces';
|
||||
|
||||
import { addressFixedCollection } from '../../../methods/sharedFields';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CustomerProperties } from '../../Interfaces';
|
||||
import type { CustomerProperties } from '../../Interfaces';
|
||||
|
||||
export const customerDeleteDescription: CustomerProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CustomerProperties } from '../../Interfaces';
|
||||
import type { CustomerProperties } from '../../Interfaces';
|
||||
|
||||
export const customerGetDescription: CustomerProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CustomerProperties } from '../../Interfaces';
|
||||
import type { CustomerProperties } from '../../Interfaces';
|
||||
|
||||
export const customerGetAllDescription: CustomerProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CustomerProperties } from '../../Interfaces';
|
||||
import type { CustomerProperties } from '../../Interfaces';
|
||||
|
||||
import { addressFixedCollection } from '../../../methods/sharedFields';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RmmProperties } from '../../Interfaces';
|
||||
import type { RmmProperties } from '../../Interfaces';
|
||||
|
||||
export const rmmCreateDescription: RmmProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RmmProperties } from '../../Interfaces';
|
||||
import type { RmmProperties } from '../../Interfaces';
|
||||
|
||||
export const rmmDeleteDescription: RmmProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RmmProperties } from '../../Interfaces';
|
||||
import type { RmmProperties } from '../../Interfaces';
|
||||
|
||||
export const rmmGetDescription: RmmProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RmmProperties } from '../../Interfaces';
|
||||
import type { RmmProperties } from '../../Interfaces';
|
||||
|
||||
export const rmmGetAllDescription: RmmProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RmmProperties } from '../../Interfaces';
|
||||
import type { RmmProperties } from '../../Interfaces';
|
||||
|
||||
export const rmmMuteDescription: RmmProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TicketProperties } from '../../Interfaces';
|
||||
import type { TicketProperties } from '../../Interfaces';
|
||||
|
||||
export const ticketCreateDescription: TicketProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TicketProperties } from '../../Interfaces';
|
||||
import type { TicketProperties } from '../../Interfaces';
|
||||
|
||||
export const ticketDeleteDescription: TicketProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TicketProperties } from '../../Interfaces';
|
||||
import type { TicketProperties } from '../../Interfaces';
|
||||
|
||||
export const ticketGetDescription: TicketProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TicketProperties } from '../../Interfaces';
|
||||
import type { TicketProperties } from '../../Interfaces';
|
||||
|
||||
export const ticketGetAllDescription: TicketProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TicketProperties } from '../../Interfaces';
|
||||
import type { TicketProperties } from '../../Interfaces';
|
||||
|
||||
export const ticketUpdateDescription: TicketProperties = [
|
||||
{
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const addressFixedCollection: INodeProperties = {
|
||||
displayName: 'Address',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user