mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Move Logger to @n8n/backend-common (#15721)
This commit is contained in:
@@ -21,10 +21,14 @@
|
|||||||
"dist/**/*"
|
"dist/**/*"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@n8n/config": "workspace:^",
|
||||||
"@n8n/constants": "workspace:^",
|
"@n8n/constants": "workspace:^",
|
||||||
"@n8n/di": "workspace:^",
|
"@n8n/di": "workspace:^",
|
||||||
|
"callsites": "catalog:",
|
||||||
"n8n-workflow": "workspace:^",
|
"n8n-workflow": "workspace:^",
|
||||||
"reflect-metadata": "catalog:"
|
"picocolors": "catalog:",
|
||||||
|
"reflect-metadata": "catalog:",
|
||||||
|
"winston": "3.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@n8n/typescript-config": "workspace:*"
|
"@n8n/typescript-config": "workspace:*"
|
||||||
|
|||||||
5
packages/@n8n/backend-common/src/environment.ts
Normal file
5
packages/@n8n/backend-common/src/environment.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const { NODE_ENV } = process.env;
|
||||||
|
|
||||||
|
export const inTest = NODE_ENV === 'test';
|
||||||
|
export const inProduction = NODE_ENV === 'production';
|
||||||
|
export const inDevelopment = !NODE_ENV || NODE_ENV === 'development';
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
export * from './license-state';
|
export * from './license-state';
|
||||||
export * from './types';
|
export * from './types';
|
||||||
|
|
||||||
const { NODE_ENV } = process.env;
|
export { inDevelopment, inProduction, inTest } from './environment';
|
||||||
|
|
||||||
export const inTest = NODE_ENV === 'test';
|
|
||||||
export const inProduction = NODE_ENV === 'production';
|
|
||||||
export const inDevelopment = !NODE_ENV || NODE_ENV === 'development';
|
|
||||||
|
|
||||||
export { isObjectLiteral } from './utils/is-object-literal';
|
export { isObjectLiteral } from './utils/is-object-literal';
|
||||||
|
export { Logger } from './logging/logger';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { inDevelopment, inProduction, isObjectLiteral } from '@n8n/backend-common';
|
|
||||||
import type { LogScope } from '@n8n/config';
|
import type { LogScope } from '@n8n/config';
|
||||||
import { GlobalConfig, InstanceSettingsConfig } from '@n8n/config';
|
import { GlobalConfig, InstanceSettingsConfig } from '@n8n/config';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
@@ -15,6 +14,9 @@ import path, { basename } from 'node:path';
|
|||||||
import pc from 'picocolors';
|
import pc from 'picocolors';
|
||||||
import winston from 'winston';
|
import winston from 'winston';
|
||||||
|
|
||||||
|
import { inDevelopment, inProduction } from '../environment';
|
||||||
|
import { isObjectLiteral } from '../utils/is-object-literal';
|
||||||
|
|
||||||
const noOp = () => {};
|
const noOp = () => {};
|
||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import type { ObjectLiteral } from '@n8n/typeorm';
|
import type { ObjectLiteral } from '@n8n/typeorm';
|
||||||
import type { QueryRunner } from '@n8n/typeorm/query-runner/QueryRunner';
|
import type { QueryRunner } from '@n8n/typeorm/query-runner/QueryRunner';
|
||||||
import { readFileSync, rmSync } from 'fs';
|
import { readFileSync, rmSync } from 'fs';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
||||||
|
|
||||||
import { createSchemaBuilder } from './dsl';
|
import { createSchemaBuilder } from './dsl';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { QueryRunner, ObjectLiteral } from '@n8n/typeorm';
|
import type { QueryRunner, ObjectLiteral } from '@n8n/typeorm';
|
||||||
import type { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import type { createSchemaBuilder } from './dsl';
|
import type { createSchemaBuilder } from './dsl';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type {
|
import type {
|
||||||
@@ -22,7 +23,7 @@ import {
|
|||||||
import { DateUtils } from '@n8n/typeorm/util/DateUtils';
|
import { DateUtils } from '@n8n/typeorm/util/DateUtils';
|
||||||
import { parse, stringify } from 'flatted';
|
import { parse, stringify } from 'flatted';
|
||||||
import pick from 'lodash/pick';
|
import pick from 'lodash/pick';
|
||||||
import { BinaryDataService, ErrorReporter, Logger } from 'n8n-core';
|
import { BinaryDataService, ErrorReporter } from 'n8n-core';
|
||||||
import { ExecutionCancelledError, UnexpectedError } from 'n8n-workflow';
|
import { ExecutionCancelledError, UnexpectedError } from 'n8n-workflow';
|
||||||
import type {
|
import type {
|
||||||
AnnotationVote,
|
AnnotationVote,
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import type { EntitySubscriberInterface, UpdateEvent } from '@n8n/typeorm';
|
import type { EntitySubscriberInterface, UpdateEvent } from '@n8n/typeorm';
|
||||||
import { EventSubscriber } from '@n8n/typeorm';
|
import { EventSubscriber } from '@n8n/typeorm';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import { UnexpectedError } from 'n8n-workflow';
|
import { UnexpectedError } from 'n8n-workflow';
|
||||||
|
|
||||||
import { Project, User } from '../entities';
|
import { Project, User } from '../entities';
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { GlobalConfig } from '@n8n/config';
|
import type { GlobalConfig } from '@n8n/config';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import { UnrecognizedCredentialTypeError, type Logger } from 'n8n-core';
|
import { UnrecognizedCredentialTypeError } from 'n8n-core';
|
||||||
import type { ICredentialType } from 'n8n-workflow';
|
import type { ICredentialType } from 'n8n-workflow';
|
||||||
|
|
||||||
import type { CredentialTypes } from '@/credential-types';
|
import type { CredentialTypes } from '@/credential-types';
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { GlobalConfig } from '@n8n/config';
|
import type { GlobalConfig } from '@n8n/config';
|
||||||
import type { WorkflowRepository } from '@n8n/db';
|
import type { WorkflowRepository } from '@n8n/db';
|
||||||
import type { CredentialsRepository, SettingsRepository } from '@n8n/db';
|
import type { CredentialsRepository, SettingsRepository } from '@n8n/db';
|
||||||
import type { UserRepository } from '@n8n/db';
|
import type { UserRepository } from '@n8n/db';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import type { ErrorReporter, Logger } from 'n8n-core';
|
import type { ErrorReporter } from 'n8n-core';
|
||||||
import type { IWorkflowBase } from 'n8n-workflow';
|
import type { IWorkflowBase } from 'n8n-workflow';
|
||||||
import { UnexpectedError } from 'n8n-workflow';
|
import { UnexpectedError } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { inTest, inDevelopment } from '@n8n/backend-common';
|
import { inTest, inDevelopment, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { OnShutdown } from '@n8n/decorators';
|
import { OnShutdown } from '@n8n/decorators';
|
||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
@@ -8,7 +8,6 @@ import { engine as expressHandlebars } from 'express-handlebars';
|
|||||||
import { readFile } from 'fs/promises';
|
import { readFile } from 'fs/promises';
|
||||||
import type { Server } from 'http';
|
import type { Server } from 'http';
|
||||||
import isbot from 'isbot';
|
import isbot from 'isbot';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { N8N_VERSION, TEMPLATES_DIR } from '@/constants';
|
import { N8N_VERSION, TEMPLATES_DIR } from '@/constants';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { CreateExecutionPayload, IExecutionDb } from '@n8n/db';
|
import type { CreateExecutionPayload, IExecutionDb } from '@n8n/db';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type {
|
import type {
|
||||||
IDeferredPromise,
|
IDeferredPromise,
|
||||||
IExecuteResponsePromiseData,
|
IExecuteResponsePromiseData,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { WorkflowsConfig } from '@n8n/config';
|
import { WorkflowsConfig } from '@n8n/config';
|
||||||
import type { WorkflowEntity, IWorkflowDb } from '@n8n/db';
|
import type { WorkflowEntity, IWorkflowDb } from '@n8n/db';
|
||||||
import { WorkflowRepository } from '@n8n/db';
|
import { WorkflowRepository } from '@n8n/db';
|
||||||
@@ -9,7 +10,6 @@ import {
|
|||||||
ActiveWorkflows,
|
ActiveWorkflows,
|
||||||
ErrorReporter,
|
ErrorReporter,
|
||||||
InstanceSettings,
|
InstanceSettings,
|
||||||
Logger,
|
|
||||||
PollContext,
|
PollContext,
|
||||||
TriggerContext,
|
TriggerContext,
|
||||||
type IGetExecutePollFunctions,
|
type IGetExecutePollFunctions,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { InvalidAuthTokenRepository, UserRepository } from '@n8n/db';
|
import { InvalidAuthTokenRepository, UserRepository } from '@n8n/db';
|
||||||
@@ -6,7 +7,6 @@ import { createHash } from 'crypto';
|
|||||||
import type { NextFunction, Response } from 'express';
|
import type { NextFunction, Response } from 'express';
|
||||||
import { JsonWebTokenError, TokenExpiredError } from 'jsonwebtoken';
|
import { JsonWebTokenError, TokenExpiredError } from 'jsonwebtoken';
|
||||||
import type { StringValue as TimeUnitValue } from 'ms';
|
import type { StringValue as TimeUnitValue } from 'ms';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { AUTH_COOKIE_NAME, RESPONSE_ERROR_MESSAGES, Time } from '@/constants';
|
import { AUTH_COOKIE_NAME, RESPONSE_ERROR_MESSAGES, Time } from '@/constants';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import 'reflect-metadata';
|
import 'reflect-metadata';
|
||||||
import { inDevelopment, inTest, LicenseState } from '@n8n/backend-common';
|
import { inDevelopment, inTest, LicenseState, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { LICENSE_FEATURES } from '@n8n/constants';
|
import { LICENSE_FEATURES } from '@n8n/constants';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
@@ -8,7 +8,6 @@ import {
|
|||||||
BinaryDataConfig,
|
BinaryDataConfig,
|
||||||
BinaryDataService,
|
BinaryDataService,
|
||||||
InstanceSettings,
|
InstanceSettings,
|
||||||
Logger,
|
|
||||||
ObjectStoreService,
|
ObjectStoreService,
|
||||||
DataDeduplicationService,
|
DataDeduplicationService,
|
||||||
ErrorReporter,
|
ErrorReporter,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { IrreversibleMigration, ReversibleMigration } from '@n8n/db';
|
import type { IrreversibleMigration, ReversibleMigration } from '@n8n/db';
|
||||||
import type { Migration, MigrationExecutor } from '@n8n/typeorm';
|
import type { Migration, MigrationExecutor } from '@n8n/typeorm';
|
||||||
import { type DataSource } from '@n8n/typeorm';
|
import { type DataSource } from '@n8n/typeorm';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { main } from '@/commands/db/revert';
|
import { main } from '@/commands/db/revert';
|
||||||
import { mockInstance } from '@test/mocking';
|
import { mockInstance } from '@test/mocking';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { Migration } from '@n8n/db';
|
import type { Migration } from '@n8n/db';
|
||||||
import { wrapMigration } from '@n8n/db';
|
import { wrapMigration } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
@@ -6,7 +7,6 @@ import type { DataSourceOptions as ConnectionOptions } from '@n8n/typeorm';
|
|||||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||||
import { MigrationExecutor, DataSource as Connection } from '@n8n/typeorm';
|
import { MigrationExecutor, DataSource as Connection } from '@n8n/typeorm';
|
||||||
import { Command, Flags } from '@oclif/core';
|
import { Command, Flags } from '@oclif/core';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { DbConnectionOptions } from '@/databases/db-connection-options';
|
import { DbConnectionOptions } from '@/databases/db-connection-options';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { capitalize } from 'lodash';
|
import { capitalize } from 'lodash';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { WorkflowExecuteMode as ExecutionMode } from 'n8n-workflow';
|
import type { WorkflowExecuteMode as ExecutionMode } from 'n8n-workflow';
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import { inTest } from '@n8n/backend-common';
|
import { inTest, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import convict from 'convict';
|
import convict from 'convict';
|
||||||
import { flatten } from 'flat';
|
import { flatten } from 'flat';
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
import merge from 'lodash/merge';
|
import merge from 'lodash/merge';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { setGlobalState, UserError } from 'n8n-workflow';
|
import { setGlobalState, UserError } from 'n8n-workflow';
|
||||||
import assert from 'node:assert';
|
import assert from 'node:assert';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { LoginRequestDto } from '@n8n/api-types';
|
import type { LoginRequestDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { UserRepository } from '@n8n/db';
|
import { UserRepository } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import type { Response } from 'express';
|
import type { Response } from 'express';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import * as auth from '@/auth';
|
import * as auth from '@/auth';
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import type { DismissBannerRequestDto, OwnerSetupRequestDto } from '@n8n/api-types';
|
import type { DismissBannerRequestDto, OwnerSetupRequestDto } from '@n8n/api-types';
|
||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import type { PublicUser, SettingsRepository } from '@n8n/db';
|
import type { PublicUser, SettingsRepository } from '@n8n/db';
|
||||||
import type { UserRepository } from '@n8n/db';
|
import type { UserRepository } from '@n8n/db';
|
||||||
import type { Response } from 'express';
|
import type { Response } from 'express';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import type { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import type { AuthService } from '@/auth/auth.service';
|
import type { AuthService } from '@/auth/auth.service';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { LoginRequestDto, ResolveSignupTokenQueryDto } from '@n8n/api-types';
|
import { LoginRequestDto, ResolveSignupTokenQueryDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User, PublicUser } from '@n8n/db';
|
import type { User, PublicUser } from '@n8n/db';
|
||||||
import { UserRepository } from '@n8n/db';
|
import { UserRepository } from '@n8n/db';
|
||||||
import { Body, Get, Post, Query, RestController } from '@n8n/decorators';
|
import { Body, Get, Post, Query, RestController } from '@n8n/decorators';
|
||||||
import { isEmail } from 'class-validator';
|
import { isEmail } from 'class-validator';
|
||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { handleEmailLogin, handleLdapLogin } from '@/auth';
|
import { handleEmailLogin, handleLdapLogin } from '@/auth';
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import type { PushMessage } from '@n8n/api-types';
|
import type { PushMessage } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { BooleanLicenseFeature, NumericLicenseFeature } from '@n8n/constants';
|
import type { BooleanLicenseFeature, NumericLicenseFeature } from '@n8n/constants';
|
||||||
import { LICENSE_FEATURES, LICENSE_QUOTAS, UNLIMITED_LICENSE_QUOTA } from '@n8n/constants';
|
import { LICENSE_FEATURES, LICENSE_QUOTAS, UNLIMITED_LICENSE_QUOTA } from '@n8n/constants';
|
||||||
import { SettingsRepository, UserRepository } from '@n8n/db';
|
import { SettingsRepository, UserRepository } from '@n8n/db';
|
||||||
import { Patch, Post, RestController } from '@n8n/decorators';
|
import { Patch, Post, RestController } from '@n8n/decorators';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Request } from 'express';
|
import { Request } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { v4 as uuid } from 'uuid';
|
import { v4 as uuid } from 'uuid';
|
||||||
|
|
||||||
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { AcceptInvitationRequestDto, InviteUsersRequestDto } from '@n8n/api-types';
|
import { AcceptInvitationRequestDto, InviteUsersRequestDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { UserRepository } from '@n8n/db';
|
import { UserRepository } from '@n8n/db';
|
||||||
import { Post, GlobalScope, RestController, Body, Param } from '@n8n/decorators';
|
import { Post, GlobalScope, RestController, Body, Param } from '@n8n/decorators';
|
||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import {
|
|||||||
SettingsUpdateRequestDto,
|
SettingsUpdateRequestDto,
|
||||||
UserUpdateRequestDto,
|
UserUpdateRequestDto,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User, PublicUser } from '@n8n/db';
|
import type { User, PublicUser } from '@n8n/db';
|
||||||
import { UserRepository } from '@n8n/db';
|
import { UserRepository } from '@n8n/db';
|
||||||
import { Body, Patch, Post, RestController } from '@n8n/decorators';
|
import { Body, Patch, Post, RestController } from '@n8n/decorators';
|
||||||
import { plainToInstance } from 'class-transformer';
|
import { plainToInstance } from 'class-transformer';
|
||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { CredentialsEntity } from '@n8n/db';
|
import type { CredentialsEntity } from '@n8n/db';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { CredentialsRepository } from '@n8n/db';
|
import { CredentialsRepository } from '@n8n/db';
|
||||||
@@ -5,7 +6,7 @@ import { Container } from '@n8n/di';
|
|||||||
import Csrf from 'csrf';
|
import Csrf from 'csrf';
|
||||||
import type { Response } from 'express';
|
import type { Response } from 'express';
|
||||||
import { captor, mock } from 'jest-mock-extended';
|
import { captor, mock } from 'jest-mock-extended';
|
||||||
import { Cipher, type InstanceSettings, Logger } from 'n8n-core';
|
import { Cipher, type InstanceSettings } from 'n8n-core';
|
||||||
import type { IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
import type { IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { CredentialsEntity } from '@n8n/db';
|
import type { CredentialsEntity } from '@n8n/db';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { CredentialsRepository } from '@n8n/db';
|
import { CredentialsRepository } from '@n8n/db';
|
||||||
@@ -5,7 +6,7 @@ import { Container } from '@n8n/di';
|
|||||||
import Csrf from 'csrf';
|
import Csrf from 'csrf';
|
||||||
import { type Response } from 'express';
|
import { type Response } from 'express';
|
||||||
import { captor, mock } from 'jest-mock-extended';
|
import { captor, mock } from 'jest-mock-extended';
|
||||||
import { Cipher, type InstanceSettings, Logger } from 'n8n-core';
|
import { Cipher, type InstanceSettings } from 'n8n-core';
|
||||||
import type { IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
import type { IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import type { CredentialsEntity, ICredentialsDb } from '@n8n/db';
|
import type { CredentialsEntity, ICredentialsDb } from '@n8n/db';
|
||||||
import { CredentialsRepository } from '@n8n/db';
|
import { CredentialsRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import Csrf from 'csrf';
|
import Csrf from 'csrf';
|
||||||
import type { Response } from 'express';
|
import type { Response } from 'express';
|
||||||
import { Credentials, Logger } from 'n8n-core';
|
import { Credentials } from 'n8n-core';
|
||||||
import type { ICredentialDataDecryptedObject, IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
import type { ICredentialDataDecryptedObject, IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
||||||
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { DismissBannerRequestDto, OwnerSetupRequestDto } from '@n8n/api-types';
|
import { DismissBannerRequestDto, OwnerSetupRequestDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { SettingsRepository, UserRepository } from '@n8n/db';
|
import { SettingsRepository, UserRepository } from '@n8n/db';
|
||||||
import { Body, GlobalScope, Post, RestController } from '@n8n/decorators';
|
import { Body, GlobalScope, Post, RestController } from '@n8n/decorators';
|
||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import {
|
|||||||
ForgotPasswordRequestDto,
|
ForgotPasswordRequestDto,
|
||||||
ResolvePasswordTokenQueryDto,
|
ResolvePasswordTokenQueryDto,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { UserRepository } from '@n8n/db';
|
import { UserRepository } from '@n8n/db';
|
||||||
import { Body, Get, Post, Query, RestController } from '@n8n/decorators';
|
import { Body, Get, Post, Query, RestController } from '@n8n/decorators';
|
||||||
import { hasGlobalScope } from '@n8n/permissions';
|
import { hasGlobalScope } from '@n8n/permissions';
|
||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
import { RESPONSE_ERROR_MESSAGES } from '@/constants';
|
import { RESPONSE_ERROR_MESSAGES } from '@/constants';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { RoleChangeRequestDto, SettingsUpdateRequestDto } from '@n8n/api-types';
|
import { RoleChangeRequestDto, SettingsUpdateRequestDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { PublicUser } from '@n8n/db';
|
import type { PublicUser } from '@n8n/db';
|
||||||
import {
|
import {
|
||||||
Project,
|
Project,
|
||||||
@@ -20,7 +21,6 @@ import {
|
|||||||
Param,
|
Param,
|
||||||
} from '@n8n/decorators';
|
} from '@n8n/decorators';
|
||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { AuthService } from '@/auth/auth.service';
|
import { AuthService } from '@/auth/auth.service';
|
||||||
import { CredentialsService } from '@/credentials/credentials.service';
|
import { CredentialsService } from '@/credentials/credentials.service';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { WorkflowStatistics } from '@n8n/db';
|
import type { WorkflowStatistics } from '@n8n/db';
|
||||||
import { StatisticsNames, WorkflowStatisticsRepository } from '@n8n/db';
|
import { StatisticsNames, WorkflowStatisticsRepository } from '@n8n/db';
|
||||||
import { Get, Middleware, RestController } from '@n8n/decorators';
|
import { Get, Middleware, RestController } from '@n8n/decorators';
|
||||||
import { Response, NextFunction } from 'express';
|
import { Response, NextFunction } from 'express';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { NotFoundError } from '@/errors/response-errors/not-found.error';
|
import { NotFoundError } from '@/errors/response-errors/not-found.error';
|
||||||
import type { IWorkflowStatisticsDataLoaded } from '@/interfaces';
|
import type { IWorkflowStatisticsDataLoaded } from '@/interfaces';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { inProduction } from '@n8n/backend-common';
|
import { inProduction, Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { existsSync } from 'fs';
|
import { existsSync } from 'fs';
|
||||||
import { mkdir, utimes, open, rm } from 'fs/promises';
|
import { mkdir, utimes, open, rm } from 'fs/promises';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { sleep } from 'n8n-workflow';
|
import { sleep } from 'n8n-workflow';
|
||||||
import { join, dirname } from 'path';
|
import { join, dirname } from 'path';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
|
import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
|
||||||
import { deepCopy, jsonParse } from 'n8n-workflow';
|
import { deepCopy, jsonParse } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import {
|
|||||||
CredentialsGetOneRequestQuery,
|
CredentialsGetOneRequestQuery,
|
||||||
GenerateCredentialNameRequestQuery,
|
GenerateCredentialNameRequestQuery,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { SharedCredentials, ProjectRelationRepository, SharedCredentialsRepository } from '@n8n/db';
|
import { SharedCredentials, ProjectRelationRepository, SharedCredentialsRepository } from '@n8n/db';
|
||||||
import {
|
import {
|
||||||
@@ -21,7 +22,6 @@ import {
|
|||||||
} from '@n8n/decorators';
|
} from '@n8n/decorators';
|
||||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||||
import { In } from '@n8n/typeorm';
|
import { In } from '@n8n/typeorm';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { deepCopy } from 'n8n-workflow';
|
import { deepCopy } from 'n8n-workflow';
|
||||||
import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
|
import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { CreateCredentialDto } from '@n8n/api-types';
|
import type { CreateCredentialDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { Project, User, ICredentialsDb, ScopesField } from '@n8n/db';
|
import type { Project, User, ICredentialsDb, ScopesField } from '@n8n/db';
|
||||||
import {
|
import {
|
||||||
CredentialsEntity,
|
CredentialsEntity,
|
||||||
@@ -17,7 +18,7 @@ import {
|
|||||||
type FindOptionsRelations,
|
type FindOptionsRelations,
|
||||||
type FindOptionsWhere,
|
type FindOptionsWhere,
|
||||||
} from '@n8n/typeorm';
|
} from '@n8n/typeorm';
|
||||||
import { CredentialDataError, Credentials, ErrorReporter, Logger } from 'n8n-core';
|
import { CredentialDataError, Credentials, ErrorReporter } from 'n8n-core';
|
||||||
import type {
|
import type {
|
||||||
ICredentialDataDecryptedObject,
|
ICredentialDataDecryptedObject,
|
||||||
ICredentialsDecrypted,
|
ICredentialsDecrypted,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { captor, mock } from 'jest-mock-extended';
|
import { captor, mock } from 'jest-mock-extended';
|
||||||
import type { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { mockInstance } from '@test/mocking';
|
import { mockInstance } from '@test/mocking';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { SourceControlledFile } from '@n8n/api-types';
|
import type { SourceControlledFile } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { IWorkflowDb } from '@n8n/db';
|
import type { IWorkflowDb } from '@n8n/db';
|
||||||
import {
|
import {
|
||||||
FolderRepository,
|
FolderRepository,
|
||||||
@@ -12,7 +13,7 @@ import { Service } from '@n8n/di';
|
|||||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||||
import { In } from '@n8n/typeorm';
|
import { In } from '@n8n/typeorm';
|
||||||
import { rmSync } from 'fs';
|
import { rmSync } from 'fs';
|
||||||
import { Credentials, InstanceSettings, Logger } from 'n8n-core';
|
import { Credentials, InstanceSettings } from 'n8n-core';
|
||||||
import { UnexpectedError, type ICredentialDataDecryptedObject } from 'n8n-workflow';
|
import { UnexpectedError, type ICredentialDataDecryptedObject } from 'n8n-workflow';
|
||||||
import { writeFile as fsWriteFile, rm as fsRm } from 'node:fs/promises';
|
import { writeFile as fsWriteFile, rm as fsRm } from 'node:fs/promises';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { UnexpectedError } from 'n8n-workflow';
|
import { UnexpectedError } from 'n8n-workflow';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { SourceControlledFile } from '@n8n/api-types';
|
import type { SourceControlledFile } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { generateKeyPairSync } from 'crypto';
|
import { generateKeyPairSync } from 'crypto';
|
||||||
import { constants as fsConstants, mkdirSync, accessSync } from 'fs';
|
import { constants as fsConstants, mkdirSync, accessSync } from 'fs';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { UserError } from 'n8n-workflow';
|
import { UserError } from 'n8n-workflow';
|
||||||
import { ok } from 'node:assert/strict';
|
import { ok } from 'node:assert/strict';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { SourceControlledFile } from '@n8n/api-types';
|
import type { SourceControlledFile } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { Variables, Project, TagEntity, User, WorkflowTagMapping } from '@n8n/db';
|
import type { Variables, Project, TagEntity, User, WorkflowTagMapping } from '@n8n/db';
|
||||||
import {
|
import {
|
||||||
SharedCredentials,
|
SharedCredentials,
|
||||||
@@ -17,7 +18,7 @@ import { Service } from '@n8n/di';
|
|||||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||||
import { In } from '@n8n/typeorm';
|
import { In } from '@n8n/typeorm';
|
||||||
import glob from 'fast-glob';
|
import glob from 'fast-glob';
|
||||||
import { Credentials, ErrorReporter, InstanceSettings, Logger } from 'n8n-core';
|
import { Credentials, ErrorReporter, InstanceSettings } from 'n8n-core';
|
||||||
import { jsonParse, ensureError, UserError, UnexpectedError } from 'n8n-workflow';
|
import { jsonParse, ensureError, UserError, UnexpectedError } from 'n8n-workflow';
|
||||||
import { readFile as fsReadFile } from 'node:fs/promises';
|
import { readFile as fsReadFile } from 'node:fs/promises';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { SettingsRepository } from '@n8n/db';
|
import { SettingsRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type { ValidationError } from 'class-validator';
|
import type { ValidationError } from 'class-validator';
|
||||||
import { validate } from 'class-validator';
|
import { validate } from 'class-validator';
|
||||||
import { rm as fsRm } from 'fs/promises';
|
import { rm as fsRm } from 'fs/promises';
|
||||||
import { Cipher, InstanceSettings, Logger } from 'n8n-core';
|
import { Cipher, InstanceSettings } from 'n8n-core';
|
||||||
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
||||||
import { writeFile, chmod, readFile } from 'node:fs/promises';
|
import { writeFile, chmod, readFile } from 'node:fs/promises';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import type {
|
|||||||
PushWorkFolderRequestDto,
|
PushWorkFolderRequestDto,
|
||||||
SourceControlledFile,
|
SourceControlledFile,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import {
|
import {
|
||||||
type Variables,
|
type Variables,
|
||||||
type TagEntity,
|
type TagEntity,
|
||||||
@@ -13,7 +14,6 @@ import {
|
|||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { hasGlobalScope } from '@n8n/permissions';
|
import { hasGlobalScope } from '@n8n/permissions';
|
||||||
import { writeFileSync } from 'fs';
|
import { writeFileSync } from 'fs';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { UnexpectedError, UserError } from 'n8n-workflow';
|
import { UnexpectedError, UserError } from 'n8n-workflow';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import type { PushResult } from 'simple-git';
|
import type { PushResult } from 'simple-git';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { TestRunRepository } from '@n8n/db';
|
import { TestRunRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This service is responsible for cleaning up pending Test Runs on application startup.
|
* This service is responsible for cleaning up pending Test Runs on application startup.
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User, TestRun } from '@n8n/db';
|
import type { User, TestRun } from '@n8n/db';
|
||||||
import { TestCaseExecutionRepository, TestRunRepository, WorkflowRepository } from '@n8n/db';
|
import { TestCaseExecutionRepository, TestRunRepository, WorkflowRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import {
|
import {
|
||||||
EVALUATION_NODE_TYPE,
|
EVALUATION_NODE_TYPE,
|
||||||
EVALUATION_TRIGGER_NODE_TYPE,
|
EVALUATION_TRIGGER_NODE_TYPE,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { EventDestinations } from '@n8n/db';
|
import type { EventDestinations } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { MessageEventBusDestinationTypeNames } from 'n8n-workflow';
|
import { MessageEventBusDestinationTypeNames } from 'n8n-workflow';
|
||||||
|
|
||||||
import { MessageEventBusDestinationSentry } from './message-event-bus-destination-sentry.ee';
|
import { MessageEventBusDestinationSentry } from './message-event-bus-destination-sentry.ee';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type {
|
import type {
|
||||||
MessageEventBusDestinationOptions,
|
MessageEventBusDestinationOptions,
|
||||||
MessageEventBusDestinationSyslogOptions,
|
MessageEventBusDestinationSyslogOptions,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { EventDestinationsRepository } from '@n8n/db';
|
import { EventDestinationsRepository } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { INodeCredentials, MessageEventBusDestinationOptions } from 'n8n-workflow';
|
import type { INodeCredentials, MessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||||
import { MessageEventBusDestinationTypeNames } from 'n8n-workflow';
|
import { MessageEventBusDestinationTypeNames } from 'n8n-workflow';
|
||||||
import { v4 as uuid } from 'uuid';
|
import { v4 as uuid } from 'uuid';
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
|
|
||||||
import { inTest } from '@n8n/backend-common';
|
import { inTest, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { once as eventOnce } from 'events';
|
import { once as eventOnce } from 'events';
|
||||||
import { createReadStream, existsSync, rmSync } from 'fs';
|
import { createReadStream, existsSync, rmSync } from 'fs';
|
||||||
import remove from 'lodash/remove';
|
import remove from 'lodash/remove';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { EventMessageTypeNames, jsonParse } from 'n8n-workflow';
|
import { EventMessageTypeNames, jsonParse } from 'n8n-workflow';
|
||||||
import path, { parse } from 'path';
|
import path, { parse } from 'path';
|
||||||
import readline from 'readline';
|
import readline from 'readline';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { EventDestinationsRepository, ExecutionRepository, WorkflowRepository } from '@n8n/db';
|
import { EventDestinationsRepository, ExecutionRepository, WorkflowRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
@@ -7,7 +8,6 @@ import type { DeleteResult } from '@n8n/typeorm';
|
|||||||
import { In } from '@n8n/typeorm';
|
import { In } from '@n8n/typeorm';
|
||||||
import EventEmitter from 'events';
|
import EventEmitter from 'events';
|
||||||
import uniqby from 'lodash/uniqBy';
|
import uniqby from 'lodash/uniqBy';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { MessageEventBusDestinationOptions } from 'n8n-workflow';
|
import type { MessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { Project } from '@n8n/db';
|
import type { Project } from '@n8n/db';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { stringify } from 'flatted';
|
import { stringify } from 'flatted';
|
||||||
@@ -6,7 +7,6 @@ import {
|
|||||||
BinaryDataService,
|
BinaryDataService,
|
||||||
ErrorReporter,
|
ErrorReporter,
|
||||||
InstanceSettings,
|
InstanceSettings,
|
||||||
Logger,
|
|
||||||
ExecutionLifecycleHooks,
|
ExecutionLifecycleHooks,
|
||||||
BinaryDataConfig,
|
BinaryDataConfig,
|
||||||
} from 'n8n-core';
|
} from 'n8n-core';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { IExecutionResponse } from '@n8n/db';
|
import type { IExecutionResponse } from '@n8n/db';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import { ErrorReporter } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { IRunExecutionData, ITaskData } from 'n8n-workflow';
|
import type { IRunExecutionData, ITaskData } from 'n8n-workflow';
|
||||||
|
|
||||||
import { mockInstance } from '@test/mocking';
|
import { mockInstance } from '@test/mocking';
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import type { IRun, IWorkflowBase, WorkflowExecuteMode } from 'n8n-workflow';
|
import type { IRun, IWorkflowBase, WorkflowExecuteMode } from 'n8n-workflow';
|
||||||
|
|
||||||
import type { IWorkflowErrorData } from '@/interfaces';
|
import type { IWorkflowErrorData } from '@/interfaces';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { stringify } from 'flatted';
|
import { stringify } from 'flatted';
|
||||||
import { ErrorReporter, Logger, InstanceSettings, ExecutionLifecycleHooks } from 'n8n-core';
|
import { ErrorReporter, InstanceSettings, ExecutionLifecycleHooks } from 'n8n-core';
|
||||||
import type {
|
import type {
|
||||||
IWorkflowBase,
|
IWorkflowBase,
|
||||||
WorkflowExecuteMode,
|
WorkflowExecuteMode,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import type { BinaryData } from 'n8n-core';
|
import type { BinaryData } from 'n8n-core';
|
||||||
import { BinaryDataConfig, BinaryDataService, Logger } from 'n8n-core';
|
import { BinaryDataConfig, BinaryDataService } from 'n8n-core';
|
||||||
import type { IRun, WorkflowExecuteMode } from 'n8n-workflow';
|
import type { IRun, WorkflowExecuteMode } from 'n8n-workflow';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import type { IRunExecutionData, ITaskData } from 'n8n-workflow';
|
import type { IRunExecutionData, ITaskData } from 'n8n-workflow';
|
||||||
|
|
||||||
export async function saveExecutionProgress(
|
export async function saveExecutionProgress(
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { IExecutionDb } from '@n8n/db';
|
import type { IExecutionDb } from '@n8n/db';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import pick from 'lodash/pick';
|
import pick from 'lodash/pick';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { ensureError, type ExecutionStatus, type IRun, type IWorkflowBase } from 'n8n-workflow';
|
import { ensureError, type ExecutionStatus, type IRun, type IWorkflowBase } from 'n8n-workflow';
|
||||||
|
|
||||||
import type { UpdateExecutionPayload } from '@/interfaces';
|
import type { UpdateExecutionPayload } from '@/interfaces';
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { IExecutionResponse } from '@n8n/db';
|
import type { IExecutionResponse } from '@n8n/db';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type { DateTime } from 'luxon';
|
import type { DateTime } from 'luxon';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { sleep } from 'n8n-workflow';
|
import { sleep } from 'n8n-workflow';
|
||||||
import type { IRun, ITaskData } from 'n8n-workflow';
|
import type { IRun, ITaskData } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import type {
|
import type {
|
||||||
User,
|
User,
|
||||||
@@ -14,7 +15,6 @@ import {
|
|||||||
} from '@n8n/db';
|
} from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { validate as jsonSchemaValidate } from 'jsonschema';
|
import { validate as jsonSchemaValidate } from 'jsonschema';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type {
|
import type {
|
||||||
ExecutionError,
|
ExecutionError,
|
||||||
ExecutionStatus,
|
ExecutionStatus,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import type { Project } from '@n8n/db';
|
import type { Project } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { type Workflow, type INode, type WorkflowSettings } from 'n8n-workflow';
|
import { type Workflow, type INode, type WorkflowSettings } from 'n8n-workflow';
|
||||||
|
|
||||||
import { SubworkflowPolicyDenialError } from '@/errors/subworkflow-policy-denial.error';
|
import { SubworkflowPolicyDenialError } from '@/errors/subworkflow-policy-denial.error';
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { FrontendSettings, UserUpdateRequestDto } from '@n8n/api-types';
|
import type { FrontendSettings, UserUpdateRequestDto } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { ClientOAuth2Options } from '@n8n/client-oauth2';
|
import type { ClientOAuth2Options } from '@n8n/client-oauth2';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import type { TagEntity, User, ICredentialsDb, PublicUser } from '@n8n/db';
|
import type { TagEntity, User, ICredentialsDb, PublicUser } from '@n8n/db';
|
||||||
@@ -9,7 +10,7 @@ import {
|
|||||||
UserRepository,
|
UserRepository,
|
||||||
} from '@n8n/db';
|
} from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import type { IRun, IWorkflowBase, Workflow, WorkflowExecuteMode } from 'n8n-workflow';
|
import type { IRun, IWorkflowBase, Workflow, WorkflowExecuteMode } from 'n8n-workflow';
|
||||||
import { UnexpectedError } from 'n8n-workflow';
|
import { UnexpectedError } from 'n8n-workflow';
|
||||||
import type clientOAuth1 from 'oauth-1.0a';
|
import type clientOAuth1 from 'oauth-1.0a';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { SettingsRepository } from '@n8n/db';
|
import { SettingsRepository } from '@n8n/db';
|
||||||
import { OnShutdown } from '@n8n/decorators';
|
import { OnShutdown } from '@n8n/decorators';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Cipher, Logger } from 'n8n-core';
|
import { Cipher } from 'n8n-core';
|
||||||
import { jsonParse, type IDataObject, ensureError, UnexpectedError } from 'n8n-workflow';
|
import { jsonParse, type IDataObject, ensureError, UnexpectedError } from 'n8n-workflow';
|
||||||
|
|
||||||
import { EventService } from '@/events/event.service';
|
import { EventService } from '@/events/event.service';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SecretsManager, type SecretsManagerClientConfig } from '@aws-sdk/client-secrets-manager';
|
import { SecretsManager, type SecretsManagerClientConfig } from '@aws-sdk/client-secrets-manager';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { INodeProperties } from 'n8n-workflow';
|
import type { INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
import { DOCS_HELP_NOTICE, EXTERNAL_SECRETS_NAME_REGEX } from '../constants';
|
import { DOCS_HELP_NOTICE, EXTERNAL_SECRETS_NAME_REGEX } from '../constants';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { SecretClient } from '@azure/keyvault-secrets';
|
import type { SecretClient } from '@azure/keyvault-secrets';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { ensureError } from 'n8n-workflow';
|
import { ensureError } from 'n8n-workflow';
|
||||||
import type { INodeProperties } from 'n8n-workflow';
|
import type { INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { SecretManagerServiceClient as GcpClient } from '@google-cloud/secret-manager';
|
import type { SecretManagerServiceClient as GcpClient } from '@google-cloud/secret-manager';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { ensureError, jsonParse, type INodeProperties } from 'n8n-workflow';
|
import { ensureError, jsonParse, type INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import type { AxiosInstance, AxiosResponse } from 'axios';
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type { IDataObject, INodeProperties } from 'n8n-workflow';
|
import type { IDataObject, INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
import { DOCS_HELP_NOTICE, EXTERNAL_SECRETS_NAME_REGEX } from '../constants';
|
import { DOCS_HELP_NOTICE, EXTERNAL_SECRETS_NAME_REGEX } from '../constants';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { Help } from '@oclif/core';
|
import { Help } from '@oclif/core';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
// oclif expects a default export
|
// oclif expects a default export
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { LdapConfig } from '@n8n/constants';
|
import type { LdapConfig } from '@n8n/constants';
|
||||||
import { LDAP_FEATURE_NAME } from '@n8n/constants';
|
import { LDAP_FEATURE_NAME } from '@n8n/constants';
|
||||||
import { SettingsRepository } from '@n8n/db';
|
import { SettingsRepository } from '@n8n/db';
|
||||||
@@ -7,7 +8,7 @@ import { Service } from '@n8n/di';
|
|||||||
import { QueryFailedError } from '@n8n/typeorm';
|
import { QueryFailedError } from '@n8n/typeorm';
|
||||||
import type { Entry as LdapUser, ClientOptions } from 'ldapts';
|
import type { Entry as LdapUser, ClientOptions } from 'ldapts';
|
||||||
import { Client } from 'ldapts';
|
import { Client } from 'ldapts';
|
||||||
import { Cipher, Logger } from 'n8n-core';
|
import { Cipher } from 'n8n-core';
|
||||||
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
import { jsonParse, UnexpectedError } from 'n8n-workflow';
|
||||||
import type { ConnectionOptions } from 'tls';
|
import type { ConnectionOptions } from 'tls';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { LicenseProvider } from '@n8n/backend-common';
|
import type { LicenseProvider } from '@n8n/backend-common';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import {
|
import {
|
||||||
LICENSE_FEATURES,
|
LICENSE_FEATURES,
|
||||||
@@ -12,7 +13,7 @@ import { OnLeaderStepdown, OnLeaderTakeover, OnShutdown } from '@n8n/decorators'
|
|||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
import type { TEntitlement, TLicenseBlock } from '@n8n_io/license-sdk';
|
import type { TEntitlement, TLicenseBlock } from '@n8n_io/license-sdk';
|
||||||
import { LicenseManager } from '@n8n_io/license-sdk';
|
import { LicenseManager } from '@n8n_io/license-sdk';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { LicenseMetricsService } from '@/metrics/license-metrics.service';
|
import { LicenseMetricsService } from '@/metrics/license-metrics.service';
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { LicenseState } from '@n8n/backend-common';
|
import { LicenseState, Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { WorkflowRepository } from '@n8n/db';
|
import { WorkflowRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import axios, { AxiosError } from 'axios';
|
import axios, { AxiosError } from 'axios';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { ensureError } from 'n8n-workflow';
|
import { ensureError } from 'n8n-workflow';
|
||||||
|
|
||||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { inTest } from '@n8n/backend-common';
|
import { inTest, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
import glob from 'fast-glob';
|
import glob from 'fast-glob';
|
||||||
@@ -13,7 +13,6 @@ import {
|
|||||||
LazyPackageDirectoryLoader,
|
LazyPackageDirectoryLoader,
|
||||||
UnrecognizedCredentialTypeError,
|
UnrecognizedCredentialTypeError,
|
||||||
UnrecognizedNodeTypeError,
|
UnrecognizedNodeTypeError,
|
||||||
Logger,
|
|
||||||
} from 'n8n-core';
|
} from 'n8n-core';
|
||||||
import type {
|
import type {
|
||||||
KnownNodesAndCredentials,
|
KnownNodesAndCredentials,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import * as a from 'assert/strict';
|
import * as a from 'assert/strict';
|
||||||
import {
|
import {
|
||||||
@@ -5,7 +6,6 @@ import {
|
|||||||
filterDisabledNodes,
|
filterDisabledNodes,
|
||||||
recreateNodeExecutionStack,
|
recreateNodeExecutionStack,
|
||||||
WorkflowExecute,
|
WorkflowExecute,
|
||||||
Logger,
|
|
||||||
isTool,
|
isTool,
|
||||||
rewireGraph,
|
rewireGraph,
|
||||||
} from 'n8n-core';
|
} from 'n8n-core';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import { InstanceSettings } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import type { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { mockInstance, mockLogger } from '@test/mocking';
|
import { mockInstance, mockLogger } from '@test/mocking';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { SharedWorkflowRepository } from '@n8n/db';
|
import { SharedWorkflowRepository } from '@n8n/db';
|
||||||
import { OnLifecycleEvent, type WorkflowExecuteAfterContext } from '@n8n/decorators';
|
import { OnLifecycleEvent, type WorkflowExecuteAfterContext } from '@n8n/decorators';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { In } from '@n8n/typeorm';
|
import { In } from '@n8n/typeorm';
|
||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { UnexpectedError, type ExecutionStatus, type WorkflowExecuteMode } from 'n8n-workflow';
|
import { UnexpectedError, type ExecutionStatus, type WorkflowExecuteMode } from 'n8n-workflow';
|
||||||
|
|
||||||
import { InsightsMetadata } from '@/modules/insights/database/entities/insights-metadata';
|
import { InsightsMetadata } from '@/modules/insights/database/entities/insights-metadata';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { InsightsByPeriodRepository } from './database/repositories/insights-by-period.repository';
|
import { InsightsByPeriodRepository } from './database/repositories/insights-by-period.repository';
|
||||||
import { InsightsRawRepository } from './database/repositories/insights-raw.repository';
|
import { InsightsRawRepository } from './database/repositories/insights-raw.repository';
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { LicenseState } from '@n8n/backend-common';
|
import { LicenseState, Logger } from '@n8n/backend-common';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { strict } from 'assert';
|
import { strict } from 'assert';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { Time } from '@/constants';
|
import { Time } from '@/constants';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { BaseN8nModule } from '@n8n/decorators';
|
import type { BaseN8nModule } from '@n8n/decorators';
|
||||||
import { N8nModule, OnLeaderStepdown, OnLeaderTakeover } from '@n8n/decorators';
|
import { N8nModule, OnLeaderStepdown, OnLeaderTakeover } from '@n8n/decorators';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
|
|
||||||
import { InsightsService } from './insights.service';
|
import { InsightsService } from './insights.service';
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,9 @@ import {
|
|||||||
type InsightsDateRange,
|
type InsightsDateRange,
|
||||||
INSIGHTS_DATE_RANGE_KEYS,
|
INSIGHTS_DATE_RANGE_KEYS,
|
||||||
} from '@n8n/api-types';
|
} from '@n8n/api-types';
|
||||||
import { LicenseState } from '@n8n/backend-common';
|
import { LicenseState, Logger } from '@n8n/backend-common';
|
||||||
import { OnShutdown } from '@n8n/decorators';
|
import { OnShutdown } from '@n8n/decorators';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { UserError } from 'n8n-workflow';
|
import { UserError } from 'n8n-workflow';
|
||||||
|
|
||||||
import type { PeriodUnit, TypeUnit } from './database/entities/insights-shared';
|
import type { PeriodUnit, TypeUnit } from './database/entities/insights-shared';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import type { Application } from 'express';
|
import type { Application } from 'express';
|
||||||
import { captor, mock } from 'jest-mock-extended';
|
import { captor, mock } from 'jest-mock-extended';
|
||||||
import type { Logger } from 'n8n-core';
|
|
||||||
import type { Server, ServerResponse } from 'node:http';
|
import type { Server, ServerResponse } from 'node:http';
|
||||||
import type { Socket } from 'node:net';
|
import type { Socket } from 'node:net';
|
||||||
import { type WebSocket, Server as WSServer } from 'ws';
|
import { type WebSocket, Server as WSServer } from 'ws';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { createHeartbeatMessage, type PushMessage } from '@n8n/api-types';
|
import { createHeartbeatMessage, type PushMessage } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import { EventEmitter } from 'events';
|
import { EventEmitter } from 'events';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import type WebSocket from 'ws';
|
import type WebSocket from 'ws';
|
||||||
|
|
||||||
import { WebSocketPush } from '@/push/websocket.push';
|
import { WebSocketPush } from '@/push/websocket.push';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import type { PushMessage } from '@n8n/api-types';
|
import type { PushMessage } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import { assert, jsonStringify } from 'n8n-workflow';
|
import { assert, jsonStringify } from 'n8n-workflow';
|
||||||
|
|
||||||
import type { OnPushMessage } from '@/push/types';
|
import type { OnPushMessage } from '@/push/types';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { PushMessage } from '@n8n/api-types';
|
import type { PushMessage } from '@n8n/api-types';
|
||||||
import { inProduction } from '@n8n/backend-common';
|
import { inProduction, Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { OnShutdown } from '@n8n/decorators';
|
import { OnShutdown } from '@n8n/decorators';
|
||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
@@ -7,7 +7,7 @@ import type { Application } from 'express';
|
|||||||
import { ServerResponse } from 'http';
|
import { ServerResponse } from 'http';
|
||||||
import type { Server } from 'http';
|
import type { Server } from 'http';
|
||||||
import { pick } from 'lodash';
|
import { pick } from 'lodash';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { deepCopy } from 'n8n-workflow';
|
import { deepCopy } from 'n8n-workflow';
|
||||||
import { parse as parseUrl } from 'url';
|
import { parse as parseUrl } from 'url';
|
||||||
import { Server as WSServer } from 'ws';
|
import { Server as WSServer } from 'ws';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||||
import { inDevelopment } from '@n8n/backend-common';
|
import { inDevelopment, Logger } from '@n8n/backend-common';
|
||||||
import { Container } from '@n8n/di';
|
import { Container } from '@n8n/di';
|
||||||
import type { Request, Response } from 'express';
|
import type { Request, Response } from 'express';
|
||||||
import { ErrorReporter, Logger } from 'n8n-core';
|
import { ErrorReporter } from 'n8n-core';
|
||||||
import { FORM_TRIGGER_PATH_IDENTIFIER, NodeApiError } from 'n8n-workflow';
|
import { FORM_TRIGGER_PATH_IDENTIFIER, NodeApiError } from 'n8n-workflow';
|
||||||
import { Readable } from 'node:stream';
|
import { Readable } from 'node:stream';
|
||||||
import picocolors from 'picocolors';
|
import picocolors from 'picocolors';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { IExecutionResponse } from '@n8n/db';
|
import type { IExecutionResponse } from '@n8n/db';
|
||||||
import type { ExecutionRepository } from '@n8n/db';
|
import type { ExecutionRepository } from '@n8n/db';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import type { WorkflowExecute as ActualWorkflowExecute } from 'n8n-core';
|
import type { WorkflowExecute as ActualWorkflowExecute } from 'n8n-core';
|
||||||
import { type Logger } from 'n8n-core';
|
|
||||||
import { mockInstance } from 'n8n-core/test/utils';
|
import { mockInstance } from 'n8n-core/test/utils';
|
||||||
import type { IPinData, ITaskData, IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
import type { IPinData, ITaskData, IWorkflowExecuteAdditionalData } from 'n8n-workflow';
|
||||||
import { Workflow, type IRunExecutionData, type WorkflowExecuteMode } from 'n8n-workflow';
|
import { Workflow, type IRunExecutionData, type WorkflowExecuteMode } from 'n8n-workflow';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import type { RunningJobSummary } from '@n8n/api-types';
|
import type { RunningJobSummary } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { ExecutionRepository, WorkflowRepository } from '@n8n/db';
|
import { ExecutionRepository, WorkflowRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { WorkflowHasIssuesError, InstanceSettings, WorkflowExecute, Logger } from 'n8n-core';
|
import { WorkflowHasIssuesError, InstanceSettings, WorkflowExecute } from 'n8n-core';
|
||||||
import type {
|
import type {
|
||||||
ExecutionStatus,
|
ExecutionStatus,
|
||||||
IExecuteResponsePromiseData,
|
IExecuteResponsePromiseData,
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { MultiMainMetadata } from '@n8n/decorators';
|
import { MultiMainMetadata } from '@n8n/decorators';
|
||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { Time } from '@/constants';
|
import { Time } from '@/constants';
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type { Redis as SingleNodeClient, Cluster as MultiNodeClient } from 'ioredis';
|
import type { Redis as SingleNodeClient, Cluster as MultiNodeClient } from 'ioredis';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import type { LogMetadata } from 'n8n-workflow';
|
import type { LogMetadata } from 'n8n-workflow';
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type { Redis as SingleNodeClient, Cluster as MultiNodeClient } from 'ioredis';
|
import type { Redis as SingleNodeClient, Cluster as MultiNodeClient } from 'ioredis';
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { jsonParse } from 'n8n-workflow';
|
import { jsonParse } from 'n8n-workflow';
|
||||||
import type { LogMetadata } from 'n8n-workflow';
|
import type { LogMetadata } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { isObjectLiteral } from '@n8n/backend-common';
|
import { isObjectLiteral, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { ExecutionRepository } from '@n8n/db';
|
import { ExecutionRepository } from '@n8n/db';
|
||||||
import { OnLeaderStepdown, OnLeaderTakeover, OnShutdown } from '@n8n/decorators';
|
import { OnLeaderStepdown, OnLeaderTakeover, OnShutdown } from '@n8n/decorators';
|
||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
import { ErrorReporter, InstanceSettings, Logger } from 'n8n-core';
|
import { ErrorReporter, InstanceSettings } from 'n8n-core';
|
||||||
import {
|
import {
|
||||||
BINARY_ENCODING,
|
BINARY_ENCODING,
|
||||||
sleep,
|
sleep,
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type { Application } from 'express';
|
import type { Application } from 'express';
|
||||||
import express from 'express';
|
import express from 'express';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { strict as assert } from 'node:assert';
|
import { strict as assert } from 'node:assert';
|
||||||
import http from 'node:http';
|
import http from 'node:http';
|
||||||
import type { Server } from 'node:http';
|
import type { Server } from 'node:http';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { inDevelopment } from '@n8n/backend-common';
|
import { inDevelopment, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { separate } from '@n8n/db';
|
import { separate } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import type { IWorkflowBase } from 'n8n-workflow';
|
import type { IWorkflowBase } from 'n8n-workflow';
|
||||||
|
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import type { Logger } from '@n8n/backend-common';
|
||||||
import type { GlobalConfig } from '@n8n/config';
|
import type { GlobalConfig } from '@n8n/config';
|
||||||
import { LICENSE_FEATURES } from '@n8n/constants';
|
import { LICENSE_FEATURES } from '@n8n/constants';
|
||||||
import { InstalledNodes } from '@n8n/db';
|
import { InstalledNodes } from '@n8n/db';
|
||||||
@@ -9,7 +10,7 @@ import { exec } from 'child_process';
|
|||||||
import { mkdir, readFile, writeFile, rm, access, constants } from 'fs/promises';
|
import { mkdir, readFile, writeFile, rm, access, constants } from 'fs/promises';
|
||||||
import { mocked } from 'jest-mock';
|
import { mocked } from 'jest-mock';
|
||||||
import { mock } from 'jest-mock-extended';
|
import { mock } from 'jest-mock-extended';
|
||||||
import type { Logger, InstanceSettings, PackageDirectoryLoader } from 'n8n-core';
|
import type { InstanceSettings, PackageDirectoryLoader } from 'n8n-core';
|
||||||
import type { PublicInstalledPackage } from 'n8n-workflow';
|
import type { PublicInstalledPackage } from 'n8n-workflow';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { SharedWorkflowRepository, WorkflowRepository } from '@n8n/db';
|
import { SharedWorkflowRepository, WorkflowRepository } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { hasGlobalScope } from '@n8n/permissions';
|
import { hasGlobalScope } from '@n8n/permissions';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
|
|
||||||
import { ActivationErrorsService } from '@/activation-errors.service';
|
import { ActivationErrorsService } from '@/activation-errors.service';
|
||||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { CommunityNodeType } from '@n8n/api-types';
|
import type { CommunityNodeType } from '@n8n/api-types';
|
||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import { Logger } from 'n8n-core';
|
|
||||||
import { ensureError, type INodeTypeDescription } from 'n8n-workflow';
|
import { ensureError, type INodeTypeDescription } from 'n8n-workflow';
|
||||||
|
|
||||||
import { CommunityPackagesService } from './community-packages.service';
|
import { CommunityPackagesService } from './community-packages.service';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
import { LICENSE_FEATURES } from '@n8n/constants';
|
import { LICENSE_FEATURES } from '@n8n/constants';
|
||||||
import type { InstalledPackages } from '@n8n/db';
|
import type { InstalledPackages } from '@n8n/db';
|
||||||
@@ -7,7 +8,7 @@ import axios from 'axios';
|
|||||||
import { exec } from 'child_process';
|
import { exec } from 'child_process';
|
||||||
import { access, constants, mkdir, readFile, rm, writeFile } from 'fs/promises';
|
import { access, constants, mkdir, readFile, rm, writeFile } from 'fs/promises';
|
||||||
import type { PackageDirectoryLoader } from 'n8n-core';
|
import type { PackageDirectoryLoader } from 'n8n-core';
|
||||||
import { InstanceSettings, Logger } from 'n8n-core';
|
import { InstanceSettings } from 'n8n-core';
|
||||||
import { jsonParse, UnexpectedError, UserError, type PublicInstalledPackage } from 'n8n-workflow';
|
import { jsonParse, UnexpectedError, UserError, type PublicInstalledPackage } from 'n8n-workflow';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { promisify } from 'util';
|
import { promisify } from 'util';
|
||||||
|
|||||||
@@ -3,17 +3,11 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||||
import { isObjectLiteral } from '@n8n/backend-common';
|
import { Logger, isObjectLiteral } from '@n8n/backend-common';
|
||||||
import type { User } from '@n8n/db';
|
import type { User } from '@n8n/db';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import get from 'lodash/get';
|
import get from 'lodash/get';
|
||||||
import {
|
import { CredentialTestContext, ErrorReporter, ExecuteContext, RoutingNode } from 'n8n-core';
|
||||||
CredentialTestContext,
|
|
||||||
ErrorReporter,
|
|
||||||
ExecuteContext,
|
|
||||||
Logger,
|
|
||||||
RoutingNode,
|
|
||||||
} from 'n8n-core';
|
|
||||||
import type {
|
import type {
|
||||||
ICredentialsDecrypted,
|
ICredentialsDecrypted,
|
||||||
ICredentialTestFunction,
|
ICredentialTestFunction,
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import type { FrontendSettings, ITelemetrySettings } from '@n8n/api-types';
|
import type { FrontendSettings, ITelemetrySettings } from '@n8n/api-types';
|
||||||
import { LicenseState } from '@n8n/backend-common';
|
import { LicenseState, Logger } from '@n8n/backend-common';
|
||||||
import { GlobalConfig, SecurityConfig } from '@n8n/config';
|
import { GlobalConfig, SecurityConfig } from '@n8n/config';
|
||||||
import { LICENSE_FEATURES } from '@n8n/constants';
|
import { LICENSE_FEATURES } from '@n8n/constants';
|
||||||
import { Container, Service } from '@n8n/di';
|
import { Container, Service } from '@n8n/di';
|
||||||
import { createWriteStream } from 'fs';
|
import { createWriteStream } from 'fs';
|
||||||
import { mkdir } from 'fs/promises';
|
import { mkdir } from 'fs/promises';
|
||||||
import uniq from 'lodash/uniq';
|
import uniq from 'lodash/uniq';
|
||||||
import { BinaryDataConfig, InstanceSettings, Logger } from 'n8n-core';
|
import { BinaryDataConfig, InstanceSettings } from 'n8n-core';
|
||||||
import type { ICredentialType, INodeTypeBaseDescription } from 'n8n-workflow';
|
import type { ICredentialType, INodeTypeBaseDescription } from 'n8n-workflow';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user