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,8 +1,9 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
import { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, INodeProperties, INodePropertyOptions, NodeApiError } from 'n8n-workflow';
|
||||
import type { IDataObject, INodeProperties, INodePropertyOptions } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function microsoftApiRequest(
|
||||
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
@@ -9,11 +9,11 @@ import {
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import type { IField } from './GenericFunctions';
|
||||
import {
|
||||
adjustAddresses,
|
||||
getEntityFields,
|
||||
getPicklistOptions,
|
||||
IField,
|
||||
microsoftApiRequest,
|
||||
microsoftApiRequestAllItems,
|
||||
sort,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import { getAccountFields } from '../GenericFunctions';
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
import { IDataObject, NodeApiError } from 'n8n-workflow';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
import type { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function microsoftApiRequest(
|
||||
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
microsoftApiRequest,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const tableOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const workbookOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const worksheetOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
export async function msGraphSecurityApiRequest(
|
||||
this: IExecuteFunctions,
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import type {
|
||||
IDataObject,
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
msGraphSecurityApiRequest,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const secureScoreControlProfileOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const secureScoreOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const fileOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const folderOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
import { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, NodeApiError } from 'n8n-workflow';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function microsoftApiRequest(
|
||||
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IBinaryKeyData,
|
||||
IDataObject,
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { microsoftApiRequest, microsoftApiRequestAllItems } from './GenericFunctions';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const draftOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const draftMessageSharedFields: INodeProperties[] = [
|
||||
// Get & Get All operations
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const folderOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const folderMessageOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
import {
|
||||
BINARY_ENCODING,
|
||||
IExecuteFunctions,
|
||||
IExecuteSingleFunctions,
|
||||
ILoadOptionsFunctions,
|
||||
} from 'n8n-core';
|
||||
import type { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
import { BINARY_ENCODING } from 'n8n-core';
|
||||
|
||||
import { IDataObject, INodeExecutionData, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
export async function microsoftApiRequest(
|
||||
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const messageAttachmentOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const messageOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IBinaryKeyData,
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
@@ -8,9 +8,8 @@ import {
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
binaryToAttachments,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* eslint-disable @typescript-eslint/ban-types */
|
||||
import { deepCopy, IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
import { ITables } from './TableInterface';
|
||||
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
import { deepCopy } from 'n8n-workflow';
|
||||
import type { ITables } from './TableInterface';
|
||||
|
||||
/**
|
||||
* Returns a copy of the item which only contains the json data and
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialsDecrypted,
|
||||
ICredentialTestFunctions,
|
||||
@@ -9,14 +9,14 @@ import {
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { chunk, flatten } from '../../../utils/utilities';
|
||||
|
||||
import mssql from 'mssql';
|
||||
|
||||
import { ITables } from './TableInterface';
|
||||
import type { ITables } from './TableInterface';
|
||||
|
||||
import {
|
||||
copyInputItem,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
|
||||
export interface ITables {
|
||||
[key: string]: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const channelOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const channelMessageOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const chatMessageOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
import { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, NodeApiError } from 'n8n-workflow';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function microsoftApiRequest(
|
||||
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const taskOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, ILoadOptionsFunctions, NodeApiError } from 'n8n-workflow';
|
||||
import type { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function microsoftApiRequest(
|
||||
this: IExecuteFunctions | ILoadOptionsFunctions,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const linkedResourceOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const listOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { microsoftApiRequest, microsoftApiRequestAllItems } from './GenericFunctions';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const taskOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user