mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -1,3 +1,4 @@
|
||||
import get from 'lodash/get';
|
||||
import type {
|
||||
IHookFunctions,
|
||||
IWebhookFunctions,
|
||||
@@ -10,7 +11,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { jsonParse, NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import { awsApiRequestSOAP } from './GenericFunctions';
|
||||
|
||||
export class AwsSnsTrigger implements INodeType {
|
||||
|
||||
@@ -8,7 +8,6 @@ import type {
|
||||
import { NodeConnectionType } from 'n8n-workflow';
|
||||
|
||||
import { certificateFields, certificateOperations } from './CertificateDescription';
|
||||
|
||||
import { awsApiRequestAllItems, awsApiRequestREST } from './GenericFunctions';
|
||||
|
||||
export class AwsCertificateManager implements INodeType {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import get from 'lodash/get';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IHookFunctions,
|
||||
@@ -8,6 +6,7 @@ import type {
|
||||
IHttpRequestOptions,
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import { getWorkflowFilenames, initBinaryDataService, testWorkflows } from '@test/nodes/Helpers';
|
||||
|
||||
const workflows = getWorkflowFilenames(__dirname);
|
||||
|
||||
@@ -11,9 +11,7 @@ import {
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { awsApiRequest, awsApiRequestAllItems } from './GenericFunctions';
|
||||
|
||||
import { itemFields, itemOperations } from './ItemDescription';
|
||||
|
||||
import type {
|
||||
FieldsUiValues,
|
||||
IAttributeNameUi,
|
||||
@@ -22,7 +20,6 @@ import type {
|
||||
IRequestBody,
|
||||
PutItemUi,
|
||||
} from './types';
|
||||
|
||||
import {
|
||||
adjustExpressionAttributeName,
|
||||
adjustExpressionAttributeValues,
|
||||
|
||||
@@ -11,13 +11,11 @@ import type {
|
||||
import { NodeConnectionType } from 'n8n-workflow';
|
||||
|
||||
import { awsApiRequestSOAP, awsApiRequestSOAPAllItems } from './GenericFunctions';
|
||||
|
||||
import { loadBalancerFields, loadBalancerOperations } from './LoadBalancerDescription';
|
||||
|
||||
import {
|
||||
listenerCertificateFields,
|
||||
listenerCertificateOperations,
|
||||
} from './ListenerCertificateDescription';
|
||||
import { loadBalancerFields, loadBalancerOperations } from './LoadBalancerDescription';
|
||||
|
||||
export class AwsElb implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import get from 'lodash/get';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -13,6 +10,7 @@ import type {
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { parseString as parseXml } from 'xml2js';
|
||||
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IHookFunctions,
|
||||
@@ -10,6 +8,7 @@ import type {
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
import { parseString as parseXml } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import { pascalCase } from 'change-case';
|
||||
import get from 'lodash/get';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -11,8 +9,7 @@ import type {
|
||||
IHttpRequestOptions,
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { pascalCase } from 'change-case';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import { getWorkflowFilenames, testWorkflows } from '@test/nodes/Helpers';
|
||||
|
||||
const responseLabels = [
|
||||
|
||||
@@ -2,7 +2,6 @@ import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow'
|
||||
import { VersionedNodeType } from 'n8n-workflow';
|
||||
|
||||
import { AwsS3V1 } from './V1/AwsS3V1.node';
|
||||
|
||||
import { AwsS3V2 } from './V2/AwsS3V2.node';
|
||||
|
||||
export class AwsS3 extends VersionedNodeType {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import { createHash } from 'crypto';
|
||||
import { paramCase, snakeCase } from 'change-case';
|
||||
|
||||
import { Builder } from 'xml2js';
|
||||
|
||||
import { createHash } from 'crypto';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -12,13 +9,11 @@ import type {
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
import { Builder } from 'xml2js';
|
||||
|
||||
import { bucketFields, bucketOperations } from './BucketDescription';
|
||||
|
||||
import { folderFields, folderOperations } from './FolderDescription';
|
||||
|
||||
import { fileFields, fileOperations } from './FileDescription';
|
||||
|
||||
import { folderFields, folderOperations } from './FolderDescription';
|
||||
import {
|
||||
awsApiRequestREST,
|
||||
awsApiRequestSOAP,
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import get from 'lodash/get';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -11,6 +8,7 @@ import type {
|
||||
IHttpRequestOptions,
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import { createHash } from 'crypto';
|
||||
import type { Readable } from 'stream';
|
||||
import { paramCase, snakeCase } from 'change-case';
|
||||
|
||||
import { Builder } from 'xml2js';
|
||||
|
||||
import { createHash } from 'crypto';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -13,13 +9,12 @@ import type {
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
import type { Readable } from 'stream';
|
||||
import { Builder } from 'xml2js';
|
||||
|
||||
import { bucketFields, bucketOperations } from './BucketDescription';
|
||||
|
||||
import { folderFields, folderOperations } from './FolderDescription';
|
||||
|
||||
import { fileFields, fileOperations } from './FileDescription';
|
||||
|
||||
import { folderFields, folderOperations } from './FolderDescription';
|
||||
import { awsApiRequestREST, awsApiRequestRESTAllItems } from './GenericFunctions';
|
||||
|
||||
// Minimum size 5MB for multipart upload in S3
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import get from 'lodash/get';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -11,6 +8,7 @@ import type {
|
||||
IHttpRequestOptions,
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import { getWorkflowFilenames, initBinaryDataService, testWorkflows } from '@test/nodes/Helpers';
|
||||
|
||||
const workflows = getWorkflowFilenames(__dirname);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import { getWorkflowFilenames, initBinaryDataService, testWorkflows } from '@test/nodes/Helpers';
|
||||
|
||||
const workflows = getWorkflowFilenames(__dirname);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import qs from 'node:querystring';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IDataObject,
|
||||
@@ -9,6 +8,7 @@ import type {
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
import qs from 'node:querystring';
|
||||
|
||||
import { awsApiRequestSOAP, awsApiRequestSOAPAllItems } from './GenericFunctions';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -11,8 +10,7 @@ import type {
|
||||
IHttpRequestMethods,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
export async function awsApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import qs from 'node:querystring';
|
||||
import assert from 'node:assert';
|
||||
import { NodeConnectionType } from 'n8n-workflow';
|
||||
import type { WorkflowTestData } from '@test/nodes/types';
|
||||
import assert from 'node:assert';
|
||||
import qs from 'node:querystring';
|
||||
|
||||
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
|
||||
import * as Helpers from '@test/nodes/Helpers';
|
||||
import type { WorkflowTestData } from '@test/nodes/types';
|
||||
|
||||
describe('AwsSes Node', () => {
|
||||
const tests: WorkflowTestData[] = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { URL } from 'url';
|
||||
import { pascalCase } from 'change-case';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -11,8 +11,8 @@ import type {
|
||||
JsonObject,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeConnectionType } from 'n8n-workflow';
|
||||
import { URL } from 'url';
|
||||
|
||||
import { pascalCase } from 'change-case';
|
||||
import { awsApiRequestSOAP } from '../GenericFunctions';
|
||||
|
||||
export class AwsSqs implements INodeType {
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { URL } from 'url';
|
||||
|
||||
import type { Request } from 'aws4';
|
||||
import { sign } from 'aws4';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialTestFunctions,
|
||||
@@ -18,6 +13,8 @@ import type {
|
||||
IRequestOptions,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
import { URL } from 'url';
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
function getEndpointForService(
|
||||
service: string,
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { URL } from 'url';
|
||||
|
||||
import type { Request } from 'aws4';
|
||||
import { sign } from 'aws4';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
IDataObject,
|
||||
@@ -15,8 +13,7 @@ import type {
|
||||
JsonObject,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import { URL } from 'url';
|
||||
|
||||
function getEndpointForService(
|
||||
service: string,
|
||||
|
||||
Reference in New Issue
Block a user