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 moment from 'moment-timezone';
|
||||
import type {
|
||||
IPollFunctions,
|
||||
IDataObject,
|
||||
@@ -7,7 +8,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import moment from 'moment-timezone';
|
||||
import type { IRecord } from './v1/GenericFunctions';
|
||||
import { apiRequestAllItems, downloadRecordAttachments } from './v1/GenericFunctions';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as getMany from '../../../../v2/actions/base/getMany.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as getSchema from '../../../../v2/actions/base/getSchema.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { IDataObject, IExecuteFunctions, IGetNodeParameterOptions, INode } from 'n8n-workflow';
|
||||
|
||||
import { get } from 'lodash';
|
||||
import { constructExecutionMetaData } from 'n8n-core';
|
||||
import type { IDataObject, IExecuteFunctions, IGetNodeParameterOptions, INode } from 'n8n-workflow';
|
||||
|
||||
export const node: INode = {
|
||||
id: '11',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as create from '../../../../v2/actions/record/create.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as deleteRecord from '../../../../v2/actions/record/deleteRecord.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as get from '../../../../v2/actions/record/get.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as search from '../../../../v2/actions/record/search.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import * as update from '../../../../v2/actions/record/update.operation';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { createMockExecuteFunction } from '../helpers';
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { oldVersionNotice } from '../../../utils/descriptions';
|
||||
import { generatePairedItemData } from '../../../utils/utilities';
|
||||
import type { IRecord } from './GenericFunctions';
|
||||
import { apiRequest, apiRequestAllItems, downloadRecordAttachments } from './GenericFunctions';
|
||||
import { oldVersionNotice } from '../../../utils/descriptions';
|
||||
import { generatePairedItemData } from '../../../utils/utilities';
|
||||
|
||||
const versionDescription: INodeTypeDescription = {
|
||||
displayName: 'Airtable',
|
||||
|
||||
@@ -5,8 +5,8 @@ import type {
|
||||
INodeTypeBaseDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { versionDescription } from './actions/versionDescription';
|
||||
import { router } from './actions/router';
|
||||
import { versionDescription } from './actions/versionDescription';
|
||||
import { listSearch, loadOptions, resourceMapping } from './methods';
|
||||
|
||||
export class AirtableV2 implements INodeType {
|
||||
|
||||
@@ -4,6 +4,7 @@ import type {
|
||||
INodeProperties,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
generatePairedItemData,
|
||||
updateDisplayOptions,
|
||||
|
||||
@@ -5,10 +5,11 @@ import type {
|
||||
IExecuteFunctions,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '../../../../../utils/utilities';
|
||||
import { processAirtableError } from '../../helpers/utils';
|
||||
import { apiRequest } from '../../transport';
|
||||
import { baseRLC } from '../common.descriptions';
|
||||
import { processAirtableError } from '../../helpers/utils';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import { baseRLC, tableRLC } from '../common.descriptions';
|
||||
|
||||
import * as create from './create.operation';
|
||||
import * as deleteRecord from './deleteRecord.operation';
|
||||
@@ -7,6 +6,7 @@ import * as get from './get.operation';
|
||||
import * as search from './search.operation';
|
||||
import * as update from './update.operation';
|
||||
import * as upsert from './upsert.operation';
|
||||
import { baseRLC, tableRLC } from '../common.descriptions';
|
||||
|
||||
export { create, deleteRecord, get, search, update, upsert };
|
||||
|
||||
|
||||
@@ -5,10 +5,11 @@ import type {
|
||||
IExecuteFunctions,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '../../../../../utils/utilities';
|
||||
import { processAirtableError, removeIgnored } from '../../helpers/utils';
|
||||
import { apiRequest } from '../../transport';
|
||||
import { insertUpdateOptions } from '../common.descriptions';
|
||||
import { processAirtableError, removeIgnored } from '../../helpers/utils';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -5,9 +5,10 @@ import type {
|
||||
NodeApiError,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '../../../../../utils/utilities';
|
||||
import { apiRequest } from '../../transport';
|
||||
import { processAirtableError } from '../../helpers/utils';
|
||||
import { apiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -5,10 +5,11 @@ import type {
|
||||
NodeApiError,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '../../../../../utils/utilities';
|
||||
import { apiRequest, downloadRecordAttachments } from '../../transport';
|
||||
import { flattenOutput, processAirtableError } from '../../helpers/utils';
|
||||
import type { IRecord } from '../../helpers/interfaces';
|
||||
import { flattenOutput, processAirtableError } from '../../helpers/utils';
|
||||
import { apiRequest, downloadRecordAttachments } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -4,10 +4,11 @@ import type {
|
||||
INodeProperties,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { generatePairedItemData, updateDisplayOptions } from '../../../../../utils/utilities';
|
||||
import { apiRequest, apiRequestAllItems, downloadRecordAttachments } from '../../transport';
|
||||
import type { IRecord } from '../../helpers/interfaces';
|
||||
import { flattenOutput } from '../../helpers/utils';
|
||||
import { apiRequest, apiRequestAllItems, downloadRecordAttachments } from '../../transport';
|
||||
import { viewRLC } from '../common.descriptions';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
|
||||
@@ -5,10 +5,11 @@ import type {
|
||||
NodeApiError,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '../../../../../utils/utilities';
|
||||
import { apiRequestAllItems, batchUpdate } from '../../transport';
|
||||
import { findMatches, processAirtableError, removeIgnored } from '../../helpers/utils';
|
||||
import type { UpdateRecord } from '../../helpers/interfaces';
|
||||
import { findMatches, processAirtableError, removeIgnored } from '../../helpers/utils';
|
||||
import { apiRequestAllItems, batchUpdate } from '../../transport';
|
||||
import { insertUpdateOptions } from '../common.descriptions';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
|
||||
@@ -5,10 +5,11 @@ import type {
|
||||
IExecuteFunctions,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '../../../../../utils/utilities';
|
||||
import { apiRequest, apiRequestAllItems, batchUpdate } from '../../transport';
|
||||
import { processAirtableError, removeIgnored } from '../../helpers/utils';
|
||||
import type { UpdateRecord } from '../../helpers/interfaces';
|
||||
import { processAirtableError, removeIgnored } from '../../helpers/utils';
|
||||
import { apiRequest, apiRequestAllItems, batchUpdate } from '../../transport';
|
||||
import { insertUpdateOptions } from '../common.descriptions';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import type { AirtableType } from './node.type';
|
||||
|
||||
import * as record from './record/Record.resource';
|
||||
import * as base from './base/Base.resource';
|
||||
import type { AirtableType } from './node.type';
|
||||
import * as record from './record/Record.resource';
|
||||
|
||||
export async function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
let returnData: INodeExecutionData[] = [];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import { NodeConnectionType, type INodeTypeDescription } from 'n8n-workflow';
|
||||
|
||||
import * as record from './record/Record.resource';
|
||||
import * as base from './base/Base.resource';
|
||||
import * as record from './record/Record.resource';
|
||||
|
||||
export const versionDescription: INodeTypeDescription = {
|
||||
displayName: 'Airtable',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ApplicationError, type IDataObject, type NodeApiError } from 'n8n-workflow';
|
||||
import set from 'lodash/set';
|
||||
import { ApplicationError, type IDataObject, type NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import type { UpdateRecord } from './interfaces';
|
||||
|
||||
export function removeIgnored(data: IDataObject, ignore: string | string[]) {
|
||||
|
||||
@@ -5,6 +5,7 @@ import type {
|
||||
INodeListSearchResult,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { apiRequest } from '../transport';
|
||||
|
||||
export async function baseSearch(
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { IDataObject, ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { apiRequest } from '../transport';
|
||||
|
||||
export async function getColumns(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
|
||||
@@ -7,6 +7,7 @@ import type {
|
||||
ResourceMapperFields,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { apiRequest } from '../transport';
|
||||
|
||||
type AirtableSchema = {
|
||||
|
||||
@@ -10,6 +10,7 @@ import type {
|
||||
IRequestOptions,
|
||||
} from 'n8n-workflow';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
import type { IAttachment, IRecord } from '../helpers/interfaces';
|
||||
import { flattenOutput } from '../helpers/utils';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user