mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
chore: Enfore consistent file-name casing on all backend packages (#15755)
This commit is contained in:
committed by
GitHub
parent
66d339c0d8
commit
3a2a70f193
@@ -2,9 +2,9 @@
|
||||
* @jest-environment jsdom
|
||||
*/
|
||||
|
||||
import { arrayExtensions } from '@/Extensions/ArrayExtensions';
|
||||
import { arrayExtensions } from '@/extensions/array-extensions';
|
||||
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Data Transformation Functions', () => {
|
||||
describe('Array Data Transformation Functions', () => {
|
||||
@@ -2,9 +2,9 @@
|
||||
* @jest-environment jsdom
|
||||
*/
|
||||
|
||||
import { booleanExtensions } from '@/Extensions/BooleanExtensions';
|
||||
import { booleanExtensions } from '@/extensions/boolean-extensions';
|
||||
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Data Transformation Functions', () => {
|
||||
describe('Boolean Data Transformation Functions', () => {
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import { dateExtensions } from '@/Extensions/DateExtensions';
|
||||
import { getGlobalState } from '@/GlobalState';
|
||||
import { dateExtensions } from '@/extensions/date-extensions';
|
||||
import { getGlobalState } from '@/global-state';
|
||||
|
||||
import { evaluate, getLocalISOString } from './Helpers';
|
||||
import { evaluate, getLocalISOString } from './helpers';
|
||||
|
||||
const { defaultTimezone } = getGlobalState();
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
/* eslint-disable n8n-local-rules/no-interpolation-in-regular-string */
|
||||
|
||||
import { ExpressionExtensionError } from '@/errors/expression-extension.error';
|
||||
import { extendTransform, extend } from '@/Extensions';
|
||||
import { joinExpression, splitExpression } from '@/Extensions/ExpressionParser';
|
||||
import { extendTransform, extend } from '@/extensions';
|
||||
import { joinExpression, splitExpression } from '@/extensions/expression-parser';
|
||||
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Expression Extension Transforms', () => {
|
||||
describe('extend() transform', () => {
|
||||
@@ -1,4 +1,4 @@
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Data Transformation Functions', () => {
|
||||
describe('Genric Data Transformation Functions', () => {
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { IDataObject } from '@/Interfaces';
|
||||
import { Workflow } from '@/Workflow';
|
||||
import type { IDataObject } from '@/interfaces';
|
||||
import { Workflow } from '@/workflow';
|
||||
|
||||
import * as Helpers from '../Helpers';
|
||||
import * as Helpers from '../helpers';
|
||||
|
||||
export const nodeTypes = Helpers.NodeTypes();
|
||||
export const workflow = new Workflow({
|
||||
@@ -2,9 +2,9 @@
|
||||
* @jest-environment jsdom
|
||||
*/
|
||||
|
||||
import { numberExtensions } from '@/Extensions/NumberExtensions';
|
||||
import { numberExtensions } from '@/extensions/number-extensions';
|
||||
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Data Transformation Functions', () => {
|
||||
describe('Number Data Transformation Functions', () => {
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ApplicationError } from '@/errors';
|
||||
import { objectExtensions } from '@/Extensions/ObjectExtensions';
|
||||
import { objectExtensions } from '@/extensions/object-extensions';
|
||||
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Data Transformation Functions', () => {
|
||||
describe('Object Data Transformation Functions', () => {
|
||||
@@ -5,7 +5,7 @@ import { DateTime } from 'luxon';
|
||||
|
||||
import { ExpressionExtensionError } from '@/errors';
|
||||
|
||||
import { evaluate } from './Helpers';
|
||||
import { evaluate } from './helpers';
|
||||
|
||||
describe('Data Transformation Functions', () => {
|
||||
describe('String Data Transformation Functions', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ExpressionError } from '@/errors/expression.error';
|
||||
import type { GenericValue, IDataObject } from '@/Interfaces';
|
||||
import type { GenericValue, IDataObject } from '@/interfaces';
|
||||
|
||||
interface ExpressionTestBase {
|
||||
type: 'evaluation' | 'transform';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
getLeafNodes,
|
||||
parseExtractableSubgraphSelection,
|
||||
hasPath,
|
||||
} from '../../src/Graph/graphUtils';
|
||||
} from '@/graph/graph-utils';
|
||||
|
||||
describe('graphUtils', () => {
|
||||
describe('getInputEdges', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { augmentArray, augmentObject } from '@/AugmentObject';
|
||||
import type { IDataObject } from '@/Interfaces';
|
||||
import { augmentArray, augmentObject } from '@/augment-object';
|
||||
import type { IDataObject } from '@/interfaces';
|
||||
import { deepCopy } from '@/utils';
|
||||
|
||||
describe('AugmentObject', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { toCronExpression } from '@/Cron';
|
||||
import type { CronExpression } from '@/Interfaces';
|
||||
import { toCronExpression } from '@/cron';
|
||||
import type { CronExpression } from '@/interfaces';
|
||||
|
||||
describe('Cron', () => {
|
||||
describe('toCronExpression', () => {
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createDeferredPromise } from '@/DeferredPromise';
|
||||
import { createDeferredPromise } from '@/deferred-promise';
|
||||
|
||||
describe('DeferredPromise', () => {
|
||||
it('should resolve the promise with the correct value', async () => {
|
||||
@@ -2,7 +2,7 @@ import { mock } from 'jest-mock-extended';
|
||||
|
||||
import { NodeApiError } from '@/errors/node-api.error';
|
||||
import { NodeOperationError } from '@/errors/node-operation.error';
|
||||
import type { INode } from '@/Interfaces';
|
||||
import type { INode } from '@/interfaces';
|
||||
|
||||
describe('NodeError', () => {
|
||||
const node = mock<INode>();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Tournament } from '@n8n/tournament';
|
||||
|
||||
import { PrototypeSanitizer, sanitizer } from '@/ExpressionSandboxing';
|
||||
import { PrototypeSanitizer, sanitizer } from '@/expression-sandboxing';
|
||||
|
||||
const tournament = new Tournament(
|
||||
(e) => {
|
||||
@@ -5,14 +5,14 @@
|
||||
import { DateTime, Duration, Interval } from 'luxon';
|
||||
|
||||
import { ExpressionError } from '@/errors/expression.error';
|
||||
import { extendSyntax } from '@/Extensions/ExpressionExtension';
|
||||
import type { INodeExecutionData } from '@/Interfaces';
|
||||
import { Workflow } from '@/Workflow';
|
||||
import { extendSyntax } from '@/extensions/expression-extension';
|
||||
import type { INodeExecutionData } from '@/interfaces';
|
||||
import { Workflow } from '@/workflow';
|
||||
|
||||
import { workflow } from './ExpressionExtensions/Helpers';
|
||||
import { workflow } from './ExpressionExtensions/helpers';
|
||||
import { baseFixtures } from './ExpressionFixtures/base';
|
||||
import type { ExpressionTestEvaluation, ExpressionTestTransform } from './ExpressionFixtures/base';
|
||||
import * as Helpers from './Helpers';
|
||||
import * as Helpers from './helpers';
|
||||
|
||||
describe('Expression', () => {
|
||||
describe('getParameterValue()', () => {
|
||||
@@ -1,8 +1,8 @@
|
||||
import merge from 'lodash/merge';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import type { FilterConditionValue, FilterValue } from '@/Interfaces';
|
||||
import { arrayContainsValue, executeFilter } from '@/NodeParameters/FilterParameter';
|
||||
import type { FilterConditionValue, FilterValue } from '@/interfaces';
|
||||
import { arrayContainsValue, executeFilter } from '@/node-parameters/filter-parameter';
|
||||
|
||||
type DeepPartial<T> = {
|
||||
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
traverseNodeParameters,
|
||||
type FromAIArgument,
|
||||
generateZodSchema,
|
||||
} from '@/FromAIParseUtils';
|
||||
} from '@/from-ai-parse-utils';
|
||||
|
||||
// Note that for historic reasons a lot of testing of this file happens indirectly in `packages/core/test/CreateNodeAsTool.test.ts`
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { readFileSync } from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
import type { INodeTypes } from '@/Interfaces';
|
||||
import type { INodeTypes } from '@/interfaces';
|
||||
|
||||
import { NodeTypes as NodeTypesClass } from './NodeTypes';
|
||||
import { NodeTypes as NodeTypesClass } from './node-types';
|
||||
|
||||
let nodeTypesInstance: NodeTypesClass | undefined;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { parseErrorMetadata } from '@/MetadataUtils';
|
||||
import { parseErrorMetadata } from '@/metadata-utils';
|
||||
|
||||
describe('MetadataUtils', () => {
|
||||
describe('parseMetadataFromError', () => {
|
||||
@@ -1,7 +1,7 @@
|
||||
import { UNKNOWN_ERROR_DESCRIPTION, UNKNOWN_ERROR_MESSAGE } from '@/Constants';
|
||||
import { UNKNOWN_ERROR_DESCRIPTION, UNKNOWN_ERROR_MESSAGE } from '@/constants';
|
||||
import { NodeOperationError } from '@/errors';
|
||||
import { NodeApiError } from '@/errors/node-api.error';
|
||||
import type { INode, JsonObject } from '@/Interfaces';
|
||||
import type { INode, JsonObject } from '@/interfaces';
|
||||
|
||||
const node: INode = {
|
||||
id: '1',
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { INodeParameters, INodeProperties } from '@/Interfaces';
|
||||
import { getNodeParameters } from '@/NodeHelpers';
|
||||
import type { INodeParameters, INodeProperties } from '@/interfaces';
|
||||
import { getNodeParameters } from '@/node-helpers';
|
||||
|
||||
describe('NodeHelpers', () => {
|
||||
describe('getNodeParameters, displayOptions set using DisplayCondition', () => {
|
||||
@@ -1,13 +1,13 @@
|
||||
import type { INodeType } from '@/index';
|
||||
import {
|
||||
NodeConnectionTypes,
|
||||
type INodeType,
|
||||
type NodeConnectionType,
|
||||
type INodeIssues,
|
||||
type INode,
|
||||
type INodeParameters,
|
||||
type INodeProperties,
|
||||
type INodeTypeDescription,
|
||||
} from '@/Interfaces';
|
||||
} from '@/interfaces';
|
||||
import {
|
||||
getNodeParameters,
|
||||
isSubNodeType,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
makeDescription,
|
||||
getUpdatedToolDescription,
|
||||
getToolDescriptionForNode,
|
||||
} from '@/NodeHelpers';
|
||||
import type { Workflow } from '@/Workflow';
|
||||
} from '@/node-helpers';
|
||||
import type { Workflow } from '@/workflow';
|
||||
|
||||
describe('NodeHelpers', () => {
|
||||
describe('getNodeParameters', () => {
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { INode } from '../src/Interfaces';
|
||||
import type { INode } from '@/interfaces';
|
||||
import {
|
||||
hasDotNotationBannedChar,
|
||||
backslashEscape,
|
||||
dollarEscape,
|
||||
applyAccessPatterns,
|
||||
extractReferencesInNodeExpressions,
|
||||
} from '../src/NodeReferenceParserUtils';
|
||||
} from '@/node-reference-parser-utils';
|
||||
|
||||
const makeNode = (name: string, expressions?: string[]) =>
|
||||
({
|
||||
@@ -8,8 +8,8 @@ import {
|
||||
type INodeTypes,
|
||||
type IVersionedNodeType,
|
||||
type LoadedClass,
|
||||
} from '@/Interfaces';
|
||||
import * as NodeHelpers from '@/NodeHelpers';
|
||||
} from '@/interfaces';
|
||||
import * as NodeHelpers from '@/node-helpers';
|
||||
|
||||
const stickyNode: LoadedClass<INodeType> = {
|
||||
type: {
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { IDataObject } from '@/Interfaces';
|
||||
import * as ObservableObject from '@/ObservableObject';
|
||||
import type { IDataObject } from '@/interfaces';
|
||||
import * as ObservableObject from '@/observable-object';
|
||||
|
||||
describe('ObservableObject', () => {
|
||||
test('should recognize that item on parent level got added (init empty)', () => {
|
||||
@@ -1,11 +1,18 @@
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { v5 as uuidv5, v3 as uuidv3, v4 as uuidv4, v1 as uuidv1 } from 'uuid';
|
||||
|
||||
import { STICKY_NODE_TYPE } from '@/Constants';
|
||||
import { STICKY_NODE_TYPE } from '@/constants';
|
||||
import { ApplicationError, ExpressionError, NodeApiError } from '@/errors';
|
||||
import type { INode, INodeTypeDescription, IRun, IRunData } from '@/Interfaces';
|
||||
import { type NodeConnectionType, NodeConnectionTypes, type IWorkflowBase } from '@/Interfaces';
|
||||
import * as nodeHelpers from '@/NodeHelpers';
|
||||
import type {
|
||||
INode,
|
||||
INodeTypeDescription,
|
||||
IRun,
|
||||
IRunData,
|
||||
NodeConnectionType,
|
||||
IWorkflowBase,
|
||||
} from '@/interfaces';
|
||||
import { NodeConnectionTypes } from '@/interfaces';
|
||||
import * as nodeHelpers from '@/node-helpers';
|
||||
import {
|
||||
ANONYMIZATION_CHARACTER as CHAR,
|
||||
extractLastExecutedNodeCredentialData,
|
||||
@@ -14,11 +21,11 @@ import {
|
||||
getDomainPath,
|
||||
resolveAIMetrics,
|
||||
userInInstanceRanOutOfFreeAiCredits,
|
||||
} from '@/TelemetryHelpers';
|
||||
} from '@/telemetry-helpers';
|
||||
import { randomInt } from '@/utils';
|
||||
|
||||
import { nodeTypes } from './ExpressionExtensions/Helpers';
|
||||
import type { NodeTypes } from './NodeTypes';
|
||||
import { nodeTypes } from './ExpressionExtensions/helpers';
|
||||
import type { NodeTypes } from './node-types';
|
||||
|
||||
describe('getDomainBase should return protocol plus domain', () => {
|
||||
test('in valid URLs', () => {
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DateTime, Settings } from 'luxon';
|
||||
|
||||
import { getValueDescription, tryToParseDateTime, validateFieldType } from '@/TypeValidation';
|
||||
import { getValueDescription, tryToParseDateTime, validateFieldType } from '@/type-validation';
|
||||
|
||||
describe('Type Validation', () => {
|
||||
describe('string-alphanumeric', () => {
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ALPHABET } from '@/Constants';
|
||||
import { ALPHABET } from '@/constants';
|
||||
import { ApplicationError } from '@/errors/application.error';
|
||||
import {
|
||||
jsonParse,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ExpressionError } from '@/errors/expression.error';
|
||||
import { createEnvProvider, createEnvProviderState } from '@/WorkflowDataProxyEnvProvider';
|
||||
import { createEnvProvider, createEnvProviderState } from '@/workflow-data-proxy-env-provider';
|
||||
|
||||
describe('createEnvProviderState', () => {
|
||||
afterEach(() => {
|
||||
@@ -11,11 +11,11 @@ import {
|
||||
type IRun,
|
||||
type IWorkflowBase,
|
||||
type WorkflowExecuteMode,
|
||||
} from '@/Interfaces';
|
||||
import { Workflow } from '@/Workflow';
|
||||
import { WorkflowDataProxy } from '@/WorkflowDataProxy';
|
||||
} from '@/interfaces';
|
||||
import { Workflow } from '@/workflow';
|
||||
import { WorkflowDataProxy } from '@/workflow-data-proxy';
|
||||
|
||||
import * as Helpers from './Helpers';
|
||||
import * as Helpers from './helpers';
|
||||
|
||||
const loadFixture = (fixture: string) => {
|
||||
const workflow = Helpers.readJsonFileSync<IWorkflowBase>(
|
||||
@@ -1,9 +1,9 @@
|
||||
import { mock } from 'jest-mock-extended';
|
||||
|
||||
import { NodeConnectionTypes } from '@/Interfaces';
|
||||
import type { IConnection } from '@/Interfaces';
|
||||
import { NodeConnectionTypes } from '@/interfaces';
|
||||
import type {
|
||||
IBinaryKeyData,
|
||||
IConnection,
|
||||
IConnections,
|
||||
IDataObject,
|
||||
INode,
|
||||
@@ -11,12 +11,12 @@ import type {
|
||||
INodeParameters,
|
||||
IRunExecutionData,
|
||||
NodeParameterValueType,
|
||||
} from '@/Interfaces';
|
||||
import { Workflow } from '@/Workflow';
|
||||
} from '@/interfaces';
|
||||
import { Workflow } from '@/workflow';
|
||||
|
||||
process.env.TEST_VARIABLE_1 = 'valueEnvVariable1';
|
||||
|
||||
import * as Helpers from './Helpers';
|
||||
import * as Helpers from './helpers';
|
||||
|
||||
interface StubNode {
|
||||
name: string;
|
||||
Reference in New Issue
Block a user