mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor: Integrate consistent-type-imports in BE packages (no-changelog) (#5270)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {
|
||||
import type {
|
||||
IWebhookData,
|
||||
WebhookHttpMethod,
|
||||
Workflow,
|
||||
|
||||
@@ -4,21 +4,19 @@
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
import { CronJob } from 'cron';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IGetExecutePollFunctions,
|
||||
IGetExecuteTriggerFunctions,
|
||||
INode,
|
||||
IPollResponse,
|
||||
ITriggerResponse,
|
||||
IWorkflowExecuteAdditionalData,
|
||||
LoggerProxy as Logger,
|
||||
TriggerTime,
|
||||
toCronExpression,
|
||||
Workflow,
|
||||
WorkflowActivateMode,
|
||||
WorkflowActivationError,
|
||||
WorkflowExecuteMode,
|
||||
} from 'n8n-workflow';
|
||||
import { LoggerProxy as Logger, toCronExpression, WorkflowActivationError } from 'n8n-workflow';
|
||||
|
||||
import type { IWorkflowData } from './Interfaces';
|
||||
|
||||
|
||||
@@ -3,9 +3,10 @@ import fs from 'fs/promises';
|
||||
import path from 'path';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import type { Readable } from 'stream';
|
||||
import { BinaryMetadata, jsonParse } from 'n8n-workflow';
|
||||
import type { BinaryMetadata } from 'n8n-workflow';
|
||||
import { jsonParse } from 'n8n-workflow';
|
||||
|
||||
import { IBinaryDataConfig, IBinaryDataManager } from '../Interfaces';
|
||||
import type { IBinaryDataConfig, IBinaryDataManager } from '../Interfaces';
|
||||
|
||||
const PREFIX_METAFILE = 'binarymeta';
|
||||
const PREFIX_PERSISTED_METAFILE = 'persistedmeta';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
import type {
|
||||
CredentialInformation,
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentials,
|
||||
ICredentialsEncrypted,
|
||||
} from 'n8n-workflow';
|
||||
import { ICredentials } from 'n8n-workflow';
|
||||
|
||||
import { AES, enc } from 'crypto-js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as path from 'path';
|
||||
import { readFile } from 'fs/promises';
|
||||
import glob from 'fast-glob';
|
||||
import { jsonParse, KnownNodesAndCredentials, LoggerProxy as Logger } from 'n8n-workflow';
|
||||
import { jsonParse, LoggerProxy as Logger } from 'n8n-workflow';
|
||||
import type {
|
||||
CodexData,
|
||||
DocumentationLink,
|
||||
@@ -13,6 +13,7 @@ import type {
|
||||
INodeTypeData,
|
||||
INodeTypeNameVersion,
|
||||
IVersionedNodeType,
|
||||
KnownNodesAndCredentials,
|
||||
} from 'n8n-workflow';
|
||||
import { CUSTOM_NODES_CATEGORY } from './Constants';
|
||||
import type { n8n } from './Interfaces';
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
import {
|
||||
import type {
|
||||
INode,
|
||||
INodeParameters,
|
||||
INodeProperties,
|
||||
INodePropertyCollection,
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
NodeOperationError,
|
||||
NodeParameterValueType,
|
||||
NodeHelpers,
|
||||
LoggerProxy,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError, NodeHelpers, LoggerProxy } from 'n8n-workflow';
|
||||
|
||||
function findPropertyFromParameterName(
|
||||
parameterName: string,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {
|
||||
import type {
|
||||
ILoadOptions,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
IRunExecutionData,
|
||||
ITaskDataConnections,
|
||||
IWorkflowExecuteAdditionalData,
|
||||
RoutingNode,
|
||||
} from 'n8n-workflow';
|
||||
import { RoutingNode } from 'n8n-workflow';
|
||||
|
||||
import * as NodeExecuteFunctions from './NodeExecuteFunctions';
|
||||
import { LoadNodeDetails } from './LoadNodeDetails';
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||
/* eslint-disable @typescript-eslint/no-shadow */
|
||||
/* eslint-disable no-param-reassign */
|
||||
import {
|
||||
import type {
|
||||
GenericValue,
|
||||
IAdditionalCredentialOptions,
|
||||
IAllExecuteFunctions,
|
||||
@@ -39,22 +39,14 @@ import {
|
||||
IWorkflowDataProxyAdditionalKeys,
|
||||
IWorkflowDataProxyData,
|
||||
IWorkflowExecuteAdditionalData,
|
||||
NodeApiError,
|
||||
NodeHelpers,
|
||||
NodeOperationError,
|
||||
Workflow,
|
||||
WorkflowActivateMode,
|
||||
WorkflowDataProxy,
|
||||
WorkflowExecuteMode,
|
||||
LoggerProxy as Logger,
|
||||
IExecuteData,
|
||||
OAuth2GrantType,
|
||||
IGetNodeParameterOptions,
|
||||
NodeParameterValueType,
|
||||
NodeExecutionWithMetadata,
|
||||
IPairedItemData,
|
||||
deepCopy,
|
||||
fileTypeFromMimeType,
|
||||
ICredentialTestFunctions,
|
||||
BinaryHelperFunctions,
|
||||
RequestHelperFunctions,
|
||||
@@ -69,22 +61,34 @@ import {
|
||||
BinaryMetadata,
|
||||
FileSystemHelperFunctions,
|
||||
} from 'n8n-workflow';
|
||||
import {
|
||||
NodeApiError,
|
||||
NodeHelpers,
|
||||
NodeOperationError,
|
||||
WorkflowDataProxy,
|
||||
LoggerProxy as Logger,
|
||||
OAuth2GrantType,
|
||||
deepCopy,
|
||||
fileTypeFromMimeType,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { Agent } from 'https';
|
||||
import { stringify } from 'qs';
|
||||
import clientOAuth1, { Token } from 'oauth-1.0a';
|
||||
import type { Token } from 'oauth-1.0a';
|
||||
import clientOAuth1 from 'oauth-1.0a';
|
||||
import clientOAuth2 from 'client-oauth2';
|
||||
import crypto, { createHmac } from 'crypto';
|
||||
import get from 'lodash.get';
|
||||
import type { Request, Response } from 'express';
|
||||
import FormData from 'form-data';
|
||||
import path from 'path';
|
||||
import { OptionsWithUri, OptionsWithUrl, RequestCallback, RequiredUriUrl } from 'request';
|
||||
import requestPromise, { RequestPromiseOptions } from 'request-promise-native';
|
||||
import type { OptionsWithUri, OptionsWithUrl, RequestCallback, RequiredUriUrl } from 'request';
|
||||
import type { RequestPromiseOptions } from 'request-promise-native';
|
||||
import requestPromise from 'request-promise-native';
|
||||
import FileType from 'file-type';
|
||||
import { lookup, extension } from 'mime-types';
|
||||
import { IncomingHttpHeaders } from 'http';
|
||||
import axios, {
|
||||
import type { IncomingHttpHeaders } from 'http';
|
||||
import type {
|
||||
AxiosError,
|
||||
AxiosPromise,
|
||||
AxiosProxyConfig,
|
||||
@@ -92,6 +96,7 @@ import axios, {
|
||||
AxiosResponse,
|
||||
Method,
|
||||
} from 'axios';
|
||||
import axios from 'axios';
|
||||
import url, { URL, URLSearchParams } from 'url';
|
||||
import type { Readable } from 'stream';
|
||||
import { access as fsAccess } from 'fs/promises';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import { ICredentialDataDecryptedObject } from 'n8n-workflow';
|
||||
import clientOAuth2 from 'client-oauth2';
|
||||
import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
|
||||
import type clientOAuth2 from 'client-oauth2';
|
||||
|
||||
export const getClientCredentialsToken = async (
|
||||
oAuth2Client: clientOAuth2,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
|
||||
import PCancelable from 'p-cancelable';
|
||||
|
||||
import {
|
||||
import type {
|
||||
ExecutionError,
|
||||
IConnection,
|
||||
IDataObject,
|
||||
@@ -30,13 +30,12 @@ import {
|
||||
IWaitingForExecution,
|
||||
IWaitingForExecutionSource,
|
||||
IWorkflowExecuteAdditionalData,
|
||||
LoggerProxy as Logger,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
Workflow,
|
||||
WorkflowExecuteMode,
|
||||
WorkflowOperationError,
|
||||
} from 'n8n-workflow';
|
||||
import { LoggerProxy as Logger, WorkflowOperationError } from 'n8n-workflow';
|
||||
import get from 'lodash.get';
|
||||
import * as NodeExecuteFunctions from './NodeExecuteFunctions';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user